- Home /
Object deformation on activat
Hello! I'm experiencing a weird problem with the physics engine that I've never encountered before. In my script I'm trying to deactivate and reactivate and object, but when it deactivates it is rotating via this code: tankbigwheel2.Rotate(Vector3.up * wheel1.rpm * 10 * Time.deltaTime);
Now this piece here is deforming the object horribly, and it literally has me stumped. It's not changing the scale of the object nor any other object settings. It's just deforming it badly. I have to have the line in my code, but don't know what else to do. I've already tried a system that'll detect when the object is about to be deactivated/activated and make sure the object isn't being rotated, but that isn't quite working. The only fix to keep the object from deforming is to take that rotation piece out, BUT that is not an option here. Is there any other work arounds? Thank you! JavaScript