I’m making a cannon and using a HingeConstraint to rotate it, but when I set the “AngularVelocity” property to 0.1, sometimes after a few seconds it stops turning.
I have checked that the value is indeed staying at 0.1. I have attempted to move the 2 objects up and down that have the attachments/HingeConstraint. Nothing seems to work. Any tips, it’s one of my first times working with Constraints.
Edit: To elaborate, the movement will be fine but suddenly stop when rotating left/right or become stuttery. To make the object continue to rotate I have to set the AngularVelocity to 0 then back to 0.1/-0.1.
Hello,
You need to provide more information, however, your problem may be because the MaxTorque value is 0, so, try something like 100000 in MaxTorque.
I have no clue if you’re still on this thread or need it, but I found a crude solution to my cannons, where I have a hinge constraint connected between a small block and one of the rotation parts, and have it repeatedly switch back and forth on the forces. It literally “forces” the parts to be awake, although you kinda have to be finicky about it.
It might be because your angular velocity is .1, same thing happened to me I tried making a spinner and the angular velocity is .4 below. It doesn’t work but when I tried putting .5+ it worked.