Questions tagged [rigid-body-dynamics]
Rigid body dynamics is the simulation of physical objects which are "solid" and cannot deform or change shape during simulation.
106
questions
2
votes
0
answers
77
views
How to choose the normal for collision?
Here two objects collide and I use impulse to calculate the velocity after the collision.
But because there are two objects, there are two normals. Calculating impulse only requires one normal.
My ...
0
votes
0
answers
55
views
Physics Engine Collision Response
I'm making a game engine with my integrated physics engine and I've encountered a problem where rigidbodies tend to over react in collisions and move around without and intention to slow down, I have ...
0
votes
0
answers
15
views
"Sticking" occurs in collision constraint solution
Two rectangles collide, use the following formula to calculate:
$$
J = \begin{vmatrix}
J_{1} \\
J_{2} \\
J_{3} \\
\end{vmatrix}
$$
$$
J_{n} = \begin{vmatrix}
\overrightarrow{n} & \overrightarrow{...
0
votes
1
answer
107
views
Why doesn't multi-constraint work in this case?
The situation is as follows:
There are two objects and there are 3 constraints between the two objects.
$$
\dot{C}=(\vec{V}_{rel_a} - \vec{V}_{rel_b}) \cdot normalize(\vec{p_{a}} - \vec{p_{b}})
$$
&...
0
votes
1
answer
315
views
Rigidbody drifting after being stopped
I am struggling with an issue in Unity where I am stopping a rigidbody's motion, but after the motion is stopped the rigidbody still moves slightly. It is causing me major issues as I need the object ...
0
votes
0
answers
57
views
Different approaches to rigid-body movement
I'm a beginner at game development and I'm building my own physics game engine to grasp the concepts.
I wonder if there are different approaches to moving and rotating a rigid body. For example, ...
0
votes
1
answer
87
views
Player is able to interact with objects but enemy isn't able to
Newbie here, I have a player script that interacts with objects just fine and I made an enemy script for the same object and it gets completely ignored:
Below there are 4 scripts. The ...
12
votes
2
answers
4k
views
Moving player inside of moving spaceship?
INTRO:
I am trying to achieve a spaceship that flies through space and the pilot can get out of their seat and walk around the ship and place physics objects in it while the ship is moving, rotating, ...
0
votes
1
answer
1k
views
Why do colliders have a tendency to spin and develop crazy angular velocity in Unity when used as my "player"?
I am trying to create a basic collider for a rigidbody player in Unity 3D. I have been experimenting with numerous shapes but found it hard to get what I want.
The primary issue seems to be if the ...
0
votes
1
answer
79
views
How to calculate accelation times and vector to orient a pointmass to a new orientation
I'm trying to design a space game where the user has 2 types of input:
forward and backwards thrust in the current direction
change orientation
The game is based on actual physics, for the sake of ...
1
vote
0
answers
194
views
How to get a consistent behavior for a rigid body hooked platform?
Consider this platform made of RigidBody2D and PinJoint2D objects:
PinJoint2D setup is:
<...
0
votes
2
answers
44
views
Taking moving colliders into account
I am currently in the process of creating my first game (as a hobbyist) and I have an issue with Unitys Rigidbody.
The objective of the game is to steer a ball in a 2-d-ish environment (3-d rigidbody ...
1
vote
0
answers
121
views
player softbody
I need some help with a softbody mechanic on a player in unity and I don't know how to approach it yet.
I want to try rigidbody collision on individual sections of the mesh, or mess with the cloth ...
0
votes
2
answers
205
views
How to detect unknown forces on pool re-used rigidbody?
I have a ragdoll which performs dying quite well when it is initialized. But when the same prefab object is re-used by being pooled and recycled, it jerks violently when die. As if some forces were ...
0
votes
1
answer
331
views
Vertical push doesn't let the object fall down instantly [UNITY]
An object (Wall) is continuously moving forward on the X axis with a simple script:
...