These pages are auto-generated from self-documenting comments embedded in class files.

For more information on breve and steve, refer to the breve homepage.

Control : PhysicalControl

Class Description:

The PhysicalControl class is a subclass of Control which must be used for physical simulations. It activates a number of features required for physical simulation and sets a number of variables to reasonable values.

Class methods:


disable-fast-physics

Returns to the default physics simulation. This is slower, but more accurate than fast physics, which are enabled using enable-fast-physics.


double-gravity

Sets gravity in the simulated world to double the regular gravity of earth.


enable-collision-resolution

Enables the collision resolution for a world. This method should be called during initialization--enabling collision resolution of an existing world will have unexpected results. This method is in fact called by the init method of PhysicalControl, so it should never be called by the user.


enable-fast-physics

This alternative physical simulation is faster, but less accurate than the default physical simulation. Though it will not work well for all simulations, you can see a large boost in performance by enabling it. Fast physics can be turned off using disable-fast-physics.


full-gravity

Sets gravity in the simulated world to the regular gravity of earth.


half-gravity

Sets gravity in the simulated world to half the regular gravity of earth.


set-gravity to newGravity (vector)

Sets the gravity affecting a physical world to newGravity. If you simply want a realistic earth-like gravity, use the convenience method full-gravity.


zero-gravity

Turns off gravity in the simulated world.


Documentation created Tue May 11 10:28:37 2004