How can I freeze / constraint a PhysicsBody's rotation in Unity DOTS?

Viewed 439

I was trying to port a small test project from Unity Engine to learn about Unity New Fishers DOTS && ECS.

It's a small project where I have a capsule with a Rigidbody and I move it from left to right using add force and I clamp the velocity to limit the speed.

I'm trying to "Freeze Specific Rotations" on DOTS.

Without DOTS there is Unity's "normal" way to constraint a Rigidbody position and rotation.

enter image description here

But if we use DOTS I can't use Rigidbody since DOTS uses PhysicsBody and there I didn't find any way to freeze / constraint certain rotations.

How can I constraint a PhysicsBody's rotation in DOTS?

0 Answers
Related