Sphere does not collide with StaticMesh if LinearVelocity has been changed?
Posted: Mon May 15, 2017 10:08 pm
I have a Space with gravity, and a sphere above a single large triangle StaticMesh. When I simulate, the sphere falls until it hits the StaticMesh and stops - exactly as expected.
However, if I do something like
mySphere.LinearVelocity += new Vector3(10, 0, 0);
as the ball is falling, it then falls straight through the mesh. Note my gravity is on the Z axis, so this linear velocity change is perpendicular (not that it should matter, however).
What am I missing here? I can't see why change the velocity should affect collisions. Thanks so much in advance for any help.
However, if I do something like
mySphere.LinearVelocity += new Vector3(10, 0, 0);
as the ball is falling, it then falls straight through the mesh. Note my gravity is on the Z axis, so this linear velocity change is perpendicular (not that it should matter, however).
What am I missing here? I can't see why change the velocity should affect collisions. Thanks so much in advance for any help.