Lock axis with 1.0 physics

Hi All,

I was wondering if there is any way to set up an entity with physics body that locks a particular axis, for either rotation or position?

I remember that in old version you have a setting called inertia to do this. But now I could not find it.
Or should I simply implement a system that constantly set the transform to lock the values?

Best

1 Like

Hey, have a look at this scene, here we show how to lock the axis and rotations.
https://github.com/Unity-Technologies/EntityComponentSystemSamples/tree/master/PhysicsSamples/Assets/Demos/4.%20Joints/4b.%20Limit%20DOF

Thanks alot!
I wonder why the file LimitDOFJoint.cs is not part of the default entity physics? It should be a basic funtionality rather a example we need to search from the sample projects.

3 Likes