Skip to main content

Unanswered Questions

763 questions with no upvoted or accepted answers
9 votes
1 answer
1k views

Using PhysX, how can I predict where I will need to generate procedural terrain collision shapes?

In this situation, I have terrain height values I generate procedurally. For rendering, I use the camera's position to generate an appropriate sized height map. For collision, however, I need to have ...
8 votes
4 answers
11k views

Handling movement on sloped surfaces - clamping character to sloped surface

I've noticed that a lot of people seem to have this issue but I've yet to find an actual working solution - when a rigidbody-based character controller (I'm not using Unity's character controller) ...
6 votes
4 answers
2k views

Lunar Lander calculating gravity, acceleration and collision in GameMaker

I've already asked this on the GameMaker forums but had no response so far. I'm making a little Lunar Lander game as my first foray in to GameMaker, I'm wanting to have the ship land and take off ...
6 votes
0 answers
213 views

How can I create a set of collision points for an arbitrary mesh?

In my project I am working on automatically deforming an arbitrary mesh with respect to another arbitrary mesh, within the context of user generated content, similar to this deformer being developed ...
5 votes
0 answers
634 views

3D Physics Engine Collision Response: Solving Simultaneous Collisions via equation

I have been implementing a basic physics engine for a small game project I'm working on. It has very specific requirements, so I decided to try and write my own physics engine to meet them. I found ...
5 votes
0 answers
311 views

Rotation of a ball moving on a surface

I have a ball that moves along a platform. The ball is characterized as a sphere that has a radius and a position. The platform basically is a rectangle consisting of two vertex triangles. Its class ...
5 votes
0 answers
237 views

Sizing a Box2D ground object

I am developing a platformer game using SDL2 for graphics and Box2D for physics. I am currently designing my levels and would like to know if it is better to make the static part of each level (ie: ...
5 votes
1 answer
184 views

How can I determine "exact moment" of collision with ray casting?

I'm currently brainstorming how the physics for my game engine is going to be handled. It's top down and I'm thinking of using ray casting for collision detection. I've reached two potential problems (...
4 votes
0 answers
136 views

Force propagation through physic bodies constraints (as non-penetration)

First, some context I'm currently implementing a (well, tiny) game engine using a predictive approach. The idea is to compute when a state change will occur, and only update state at time of the ...
4 votes
0 answers
173 views

Support function of Minkowski Difference

I am watching this and if you stop at 7:25, you will find an implementation of the support function. The goal of the function is to give you the farthest point in a given direction. My question is how ...
4 votes
0 answers
314 views

Determine user mouse selection of 3D Object for multiple viewports

I am currently working on setting up some world objects for my level editor and am running into a bit of a snag. When I get the hit location from the mouse raycast, I would like to determine what part ...
4 votes
0 answers
181 views

Understanding unknown mesh data structure

I have a large number of old mesh files in a custom, undocumented binary format. I have managed to parse almost everything but am left with one group of structures, described below, that I don't ...
4 votes
1 answer
2k views

Friction due to gravity in an impulse based physics engine

In my physics engine, I'm using impulses to solve collisions. I'm basing all calculations on these equations: ...
4 votes
1 answer
2k views

Disc Golf Physics in Unity

I am trying to make a frisbee golf game, and I am stuck on the physics of the frisbee. I can get the disc to fly, but I have not been able to add spin or make it act the way a frisbee would in real ...
3 votes
0 answers
50 views

Collision response with external forces & small relative velocities

How do I deal with collisions that have small relative velocities, but external forces such as gravity? Imagine a scenario with a box in 2D, rotated 30 degrees, and placed on the ground. Gravity acts ...

15 30 50 per page
1
2 3 4 5
51