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.

Methods:

  • disableAutoDisable
  • disableFastPhysics
  • doubleGravity
  • enableAutoDisable
  • enableCollisionResolution
  • enableFastPhysics
  • fullGravity
  • halfGravity
  • setCfm
  • setErp
  • setFastPhysicsIterations
  • setGravity
  • zeroGravity
    disableAutoDisable( self )


    disableFastPhysics( self )

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


    doubleGravity( self )

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


    enableAutoDisable( self )


    enableCollisionResolution( self )

    Obsolete.


    enableFastPhysics( self )

    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.


    fullGravity( self )

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


    halfGravity( self )

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


    setCfm( self, cfmValue )

    Sets the constraint force mixing paremter for the world. See the ODE physics engine documentation for more details.


    setErp( self, erpValue )

    Sets the error correction parameter for the world. See the ODE physics engine documentation for more details.


    setFastPhysicsIterations( self, iterations )

    Sets the iterations parameter for the fast physics algorithm. This parameter can be tuned to give better speed or better accuracy. The default value is 40.


    setGravity( self, newGravity )

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


    zeroGravity( self )

    Turns off gravity in the simulated world.