Questions tagged [physics]
Relating to the motion of objects through space and time. Including concepts such as acceleration (thrust and gravity), mass, collision response, friction and more.
442
questions with no upvoted or accepted answers
1
vote
1
answer
299
views
Collision normal for sphere near edge of triangle face
When my sphere (or bottom part of a capsule) moves with its bottom near the edge of a mostly horizontal triangle (a face of a heightmap), I am sometimes getting very bad (mostly horizontal) normals. ...
1
vote
1
answer
77
views
Unity Engine Movement Script Causes Shark To Fly
This code is for controlling a shark
I want to have continuous collision detection which won't work with MovePosition so I tried changing it other options but those are making the Shark Fly
Why does ...
1
vote
1
answer
860
views
3D CharacterController ride moving platforms in Unity?
I have a player controller script that I'm writing that uses the CharacterController component to move around and handle collisions. I've been able to implement ...
1
vote
0
answers
450
views
Aircraft simulation
Trying to get a "semi" realistic aircraft simulator. I'm pulling my hair out because I just can't get the math right. I'm not looking for super realistic but want to at least get some ...
1
vote
0
answers
103
views
Move physics capsule at same acceleration regardless of surface slope
Into:
I'm trying to move a capsule up/down a slope accelerating at the same rate as a capsule on a flat surface. I cannot set the velocity directly, because there will be many more forces affecting ...
1
vote
0
answers
170
views
Source Engine - Strange factors in acceleration equation
I was going through the player movement code for the source engine when I stumbled upon the following function:
...
1
vote
0
answers
74
views
How do I simulate the forces acting on this hydraulic system?
I've been trying to create an algorithm to simulate a specific hydraulic suspension system for animating a car rig. Below are the schematics for the hydraulic system:
All same-color lines are ...
1
vote
0
answers
856
views
Maths behind Unity rigidbody.AddForce
I've tried to understand the Maths behind AddForce, as to reproduce it using rigidbody.velocity +=.
Based on the formulas ...
1
vote
0
answers
78
views
Character movement on irregular surface in Unity
I'm currently implementing a system in Unity where I generate an approximation of a blood cell and treat it as a planetoid, as if you're playing Super Mario Galaxy, and you're running around the ...
1
vote
0
answers
95
views
Object stuck against an obstacle still pushes other objects away
I have an object pinned against the ground by a revolute joint. A motor on the joint makes the object spin. Sometimes the object becomes stuck pushing against a static body. When it happens the object ...
1
vote
0
answers
41
views
How can I make this motion collide against a wall
EDIT
I've actually commented out the motion in my code and adapted it to try reproduce this post.After a chat with @DMGregory he told me to use velocity reflection but as you can see in the following ...
1
vote
0
answers
120
views
how can I normalize the speed of a polygon moving over a series of connected quadratic bezier curves with varying lengths?
I am generating a bunch of quadratic curves that are connected together, creating an array of curves, and a function which returns the position on the curve for a given time.
...
1
vote
0
answers
197
views
How can I allow the rope to correctly interact with Box and Polygon colliders?
In order to build 2d rope physics in my game, I download the github project from Jongallant in this link. In my game, I want the rope to collide with objects with different types of colliders such as ...
1
vote
0
answers
213
views
How to connect a UPhysicsConstraintComponent of an AActor to an FKSphylElem (capsule body) of a ragdoll?
I'm trying to connect an Actor's UPhysicsConstraintComponent to a capsule body of a ragdoll. The reason I do it this way, instead of just using sockets on the ...
1
vote
0
answers
297
views
How to make a catapult work with physics and colliders?
This should be my final question regarding getting a catapult to throw something in unity. On my last question, someone suggested starting with something simpler (which I apologize for not doing ...