Table of Contents

Pendulum Wand – Rotation

Example Description
The example demonstrates how to make a sprite be fixed to a point but can rotate. The wand is hanging like a pendulum.

The example demonstrates how to make a sprite be fixed to a point but can rotate. The wand is hanging like a pendulum.

The center of the wand in the costume is the point of rotation.

The following code creates the simulation of the pendulum.

Output