The problem I’m running into is that after I freeze my object I want to set its position and rotation. How would I go about doing this? I need it to be instant so most of the rotate solutions I’ve been trying haven’t been working. Similarly to how it’s done in editor if you modify the x, y and z in the transform component.
this is my rigidbody freeze code.
body.constraints = RigidbodyConstraints.FreezeAll;