Closed LiamGallagher737 closed 2 years ago
For the record, would you mind share why you needed this?
When doing the following in update the entity wouldn't move
if input.handbrake { *rotation_constraints = RotationConstraints::lock(); } else { *rotation_constraints = RotationConstraints::allow(); }
But this would
if input.handbrake && rotation_constraints.allow_x && rotation_constraints.allow_y && rotation_constraints.allow_z { *rotation_constraints = RotationConstraints::lock(); } else if !input.handbrake && !rotation_constraints.allow_x && !rotation_constraints.allow_y && !rotation_constraints.allow_z { *rotation_constraints = RotationConstraints::lock(); }
:tada: This issue has been resolved in version 4.0.0-alpha.2 :tada:
:tada: This issue has been resolved in version 4.0.0 :tada:
When doing the following in update the entity wouldn't move
But this would