Enabling Physical Simulation
<< previous | Chapter 8. Physical Simulation | next >>

## Enabling Physical Simulation

To write a simulation with physical simulation, your controller object should be a subclass of the class PhysicalControl. This class sets certain simulation parameters to values sensible for physical simulation, such as integration step, gravity, etc.

Physics must be enabled for Mobile objects on an object by object basis using the method enable-physics. When dealing with physical simulations, however, it is often preferable to use the Mobile subclass Link for which physical simulation is automatically enabled.

<< previous | Up | next >>
Chapter 8. Physical Simulation | Table of Contents | Fast Physical Simulation