Home Technical Talk

Throttles + Float Script / 3D Max

polycounter lvl 18
Offline / Send Message
Showster polycounter lvl 18
Hey Folks,

Does anyone know how you could create a system to act like a throttle in 3D Max. For example turn up a dial and wheel starts, turn it down and the rotation slows etc.

I've had a play with using a float script on a rotation axis in Max but at the moment if I turn down a dial it just reverses the rotation rather than slowing down the forward rotation.

I guess this is expected for example the formula outputs say 1.5 at frame 10, then 2 at frame 20 (which is fine wheel goes forward) and then 1.5 at frame 30. At this point the controller tweens / reverses backwards.

The formula, is at present (degtorad((CurrentTime)*SpinRate). I'm guessing it needs a completely different approach?

Cheers for any help / ideas

Replies

  • redPower
    Well, the problem can't be with your formula, it seems like it might have something to do with whatever controller you have assigned to the variable SpinRate. The degtorad function is completely unnecessary as that will just scale your values down and serve no purpose. When you say CurrentTime are you referring to the S variable? S is seconds in a float script, and needs to be used in this case. Your formula should be as simple as...

    S * SpinRate

    Make sure the controller you have asigned to SpinRate is behaving correctly, as that would be the only thing making it rotate backwards.
Sign In or Register to comment.