ActiveDen

Drag and rotation physics

Drag & Rotation is a demonstration of the algorithms involved in making movieclips behave naturally when dragging and rotating them.

Simply copy the DragRotationCard from the library to your own project, edit the graphic and put as many of them as you need on stage. Or; attach the MovieClip at runtime and load an image into it – whatever you need really. :)

The example cards are not meant to solve any particular problem – they are for demonstration purposes. I encourage you to study the code and adapt it to your specific problem. Collision detection and all the algebra is clearly separated and very portable.

by
by
by
by
by