PDA

View Full Version : rotation speed control expression


doms
06-14-2004, 04:24 PM
Sorry this is an expressions problem but i couldn't of where else to post. (I've spent weeks trying to readup on expressions to sort out the wheel rotation on a machine, which needs to be linked to the speed of other parts of that machine).

rotY= frame x speed;

The obvious problem is that if you reduce the speed attribute the wheel spins like crazy in the wrong direction. If you know expressions there's probably a really easy answer to this (someone said that you use a += thing somehow, so something more specific than that would be welcome).
Thanx in advance

doms
06-15-2004, 08:20 AM
got reply from highend3d.com- rotY += c * speed;

(probably pretty obvious if code/ maths is your thing)

Nicool
06-15-2004, 11:48 AM
I did not have a complete reply to your question, but now, I can give you this link to a good start to expressions writing : http://users.design.ucla.edu/~cariesta/MayaCourseNotes/html/body_expressions.html

CGTalk Moderation
01-18-2006, 11:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.