RedPendulum an object that oscillates


superclass: RedObject


note that size is used as radius for this object.  works only in 1-2D for now.


see also [RedObject]


instance methods:

addForceAngular2D(force)

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.

addForceAngular1D(force)

pendulumOffset1D

pendulumLoc1D

//addForceAngular3D(force) not implemented yet

//pendulumOffset3D not implemented yet

//pendulumLoc3D not implemented yet

instance variables:

<>theta

scalar in radians.

<>angularVel

scalar angular velocity.



a= RedWorld.new

b= RedPendulum(a).theta_(pi/2)


a.objects

b.dump


//see examples folder