Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-03-2010, 03:11 AM   #1
FEK315
Senior Member
 
Join Date: Mar 2004
Location: seattle
Posts: 348
Default Rotate vs Rotation

Is "rotate" used for direction or is it used to specify how many 360 revolutions an MC should make?
Is "rotation" a value, like a number .5 that relates to one 360 revolution?

Meaning, negative is CCW, Positive is CW, Rotate = number of 360 revolutions, and Rotation= the increments that make up a single 360 revolution?

Sorry if this is a knewb question.
__________________
Ghost bear, Mecha Veteran of the Hia Shi Dao, Neroimus, Davion and PAX Economics Wars. "Man, I have seen a lot of oil spilled!"

Last edited by FEK315; 04-03-2010 at 06:10 AM.
FEK315 is offline   Reply With Quote
Old 04-03-2010, 06:45 AM   #2
lordofduct
Senior Member
 
lordofduct's Avatar
 
Join Date: Feb 2008
Location: West Palm Beach, FL
Posts: 3,872
Default

1) why not try testing it... you would see how it ends up working

2) methods tend to mean what they say they are.

rotate - verb - changes the rotation by the amount you rotate by. So if you are at 30, and you rotate by 60... the result is 90. Sign denotes direction... so if at 75 and rotate by -15, you end up at 60.

rotation - noun - the actual current value... setting this updates it to the value passed. So no matter what rotation is, setting it to 60 results in 60.


Furthermore the way you do this infers the action. rotate(...) is a method/function. Function infers the idea that you are performing an action on something. rotation on the other hand is a property, a value that is set.
__________________
www.lordofduct.com - come read my blog!

If you want to know how to program, take a math class, take a lot of math classes!
lordofduct is offline   Reply With Quote
Old 04-03-2010, 04:47 PM   #3
FEK315
Senior Member
 
Join Date: Mar 2004
Location: seattle
Posts: 348
Default

Thank you LordofDuct.
I like the experiment it out approach.
__________________
Ghost bear, Mecha Veteran of the Hia Shi Dao, Neroimus, Davion and PAX Economics Wars. "Man, I have seen a lot of oil spilled!"
FEK315 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:53 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.