Page 1 of 1

Counter Clockwise Rotational Bundles?

Posted: Thu Mar 11, 2021 9:43 am
by Jim2102
Hello! I have an object which uses the rotational bundle code from the seagulls in DC:

=================================================
ObjectTemplate.create Bundle SSN_Rotational
ObjectTemplate.geometry Nothinghere
ObjectTemplate.setHasCollisionPhysics 0
ObjectTemplate.cullRadiusScale 0.42
ObjectTemplate.aiTemplate SSN_RotationalAI
ObjectTemplate.addTemplate SSN_Rotational_rotating
ObjectTemplate.setPosition 0/0/0

ObjectTemplate.create RotationalBundle SSN_Rotational_rotating
ObjectTemplate.geometry SSN_Rotational
ObjectTemplate.setHasCollisionPhysics 0
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/0/0
ObjectTemplate.setMaxSpeed 1.0/0/0
ObjectTemplate.setAcceleration 1.0/0/0
ObjectTemplate.setContinousRotationSpeed 1.0/0/0
=================================================

This makes the object rotate clockwise. However, I want it to rotate counter clockwise. I've tried changing the MaxSpeed, Acceleration, and ContinuousRotationSpeed values to -1.0/0/0, but that doesn't seem to work, the object still rotates clockwise. Any ideas on how to solve this?

-Regards, Jimbo

Re: Counter Clockwise Rotational Bundles?

Posted: Sun Mar 14, 2021 4:35 pm
by Diamondback
Hmm. That one might be hard-coded unfortunately. Not too sure though, maybe f0ok/freddy would know?

Re: Counter Clockwise Rotational Bundles?

Posted: Wed Mar 17, 2021 4:52 am
by Apache Thunder
I don't recall such a limitation with rotational bundles. I think the issue is you are using negative values for too many things. Try using positive values for everything except the setContinousRotationSpeed.

For non continuous rotation objects it's usually the setAcceleration that you use a negative value on to alter if it counter rotates in relation to engine/player input. But setContinousRotationSpeed acts a bit differently I think so you don't do that here. You can also try using a positive value on setContinousRotationSpeed but use a negative value on setAcceleration.