DimpleWorld

Represents the world in a dimple

Inherits from:: Object : DimpleThing

This class represents the world within dimple. It holds lists of all objects and their constraints. Properties you can set and get are 'gravity' (x,y,z) and 'collide' (0 or 1).

Any method not known as an instance method of Dimple, is forwarded to this class, so instead of (if 'd' is an instance of Dimple): d.world.clear, you can do d.clear.

Creation / Class Methods

*new(dimple)
Create a new instance of DimpleWorld. This is done automatically when an instance of Dimple is created.
dimple
The instance of Dimple to which this DimpleWorld belongs.

Accessing Instance and Class Variables

drop
Drop the current object.
clear
Clear the world.
constraints
List with all DimpleConstraints within the world.
objects
List with all DimpleObjects in the world
addObject(obj)
Add a DimpleObject to the world.
addConstraint(obj)
Add a DimpleConstraint to the world.
removeObject(obj)
Remove an object from the world. This is called automatically when an object is destroyed with the destroy method.
removeConstraint(obj)
Remove a constraint from the world. This is called automaticall when a constraint is destroyed with a destroy method, or as a result of destroying an object.
oscPath(property)
Create an osc-tag for the property (overloaded from DimpleThing)

This helpfile was created with the class HelpFile2