RedPendulum:
Filter:
redUniverse/Classes (extension) | Red > redUniverse

RedPendulum
ExtensionExtension

an object that oscillates

Description

NOTE: The size is used as radius for this object.

Instance Methods

.addForceAngular2D

Push the pendulum with a scalar force.

.pendulumOffset2D

Return the current location ( RedVector2D ) of the pendulum relative to the whole object.

.pendulumLoc2D

Return the actual location ( RedVector2D ) of the pendulum.

.theta

Scalar in radians.

.angularVel

Scalar angular velocity.

Examples