Download

How do I get/set the constraints of a physics object at run-time

Hi, I have a collision box and I want to lock its rotation at run time. in editor i can use this to lock the rotations but how would i get this property in code or BP?
Capture

In case anyone else is looking for the answer, I solved this right away but forgot to mention here.

here is the code:

		CapsuleCollider->BodyInstance.bLockXRotation = true;
		CapsuleCollider->BodyInstance.bLockYRotation = true;
		CapsuleCollider->BodyInstance.bLockZRotation = true;