Rectangular Object that spins around its Centre - by MouseDrag

13 views
Skip to first unread message

Sawrb

unread,
Aug 2, 2010, 3:40:44 PM8/2/10
to APE General
So I'm an APE n00b. Standard Disclaimer.
Having said that, I am totally loving the simplicity and quick
implementation process for APE. I am trying to build a simple
application where a rectangular object can be clicked and dragged to
spin around its axis (like a fortune wheel - only not circular). And
eventually spins out of steam depending on the damping set up. Gravity
isnt a factor here, since the App is a top-down view.

Currently Im working on an implementation where I use a fixed
circleParticle as the anchor, and another dragableCircleParticle as
the draggable particle and a springConstraint between them. And on the
enterFrame events I bind the angle of the springConstraint to another
rectangular element on the screen (which needs to spin around its
axis, in the first place).

Any pointers?
Reply all
Reply to author
Forward
0 new messages