OZONE Asylum
Forums
Multimedia/Animation
Rotating an object along a curve
This page's ID:
29006
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hi there! Wow I haven't posted a new topic in ages, so here goes, flame at will... I've a question on Actionscript, yet it is truly a mathematical question that may well be answered without any AS knowledge. I have a flash movie, Inside my movie I have an Arrow, My arrow follows the path of a sine wave[code]WAVE_HEIGHT*Math.sin(n*(Math.PI*2)+WAVE_SPEED)[/code]My arrow always faces 'east', I want my arrow to rotate to the tangent of the curve. I currently have...[code]arrow._rotation = WAVE_HEIGHT*Math.sin(n*(Math.PI*2))[/code]But really I just made that up. Does any brain here have the knowledge I seek to guide and educate? Cheers, [img]http://www.geocities.com/blaise69dude/images/BlaiseSig.gif[/img]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »