Dimple
Class to interface with the program Dimple
Inherits from:: Object
This is a class to interface with Dimple, created by the IDMIL (McGill University, Montreal).
Creation / Class Methods
- *dimplePath_
-
- *dimplePath
- This is the path that points to where your version of dimple resides. It should point to the executable, e.g. /usr/local/dimple
- *new
- Create a new instance of Dimple and start the program.
Accessing Instance and Class Variables
- start
- Start dimple with the right sender port (sclang's port). Called automatically when creating a new instance.
- createSphere(x,y,z)
- Create a sphere at position (x,y,z)
- createPrism(x,y,z)
- Create a prism at position (x,y,z)
- createMesh(meshfile,x,y,z)
- Create a mesh at position (x,y,z)
- meshfile
- The filename of the .3ds mesh file
- createConstraint(type,a,b,argVector)
- Create a constraint between two objects.
- a
- Object one
- b
- Object two
- argVector
- Additional arguments for the constraint (should be an Array).
- type
- The type of constraint (ball,hinge,hinge2,universal,fixed,slide,piston)
- world
- Access to the DimpleWorld
- camera
- Access to the camera in dimple
- cursor
- Access to the cursor in dimple
- drop
- Drop the current object
- clear
- Clear all objects and contraints from the world.
- doesNotUnderstand(selector,args)
- This forwards any other method to world
- recvaddr
-
- recvaddr_
- The address from which messages are received (currently 'nil')
- addr
-
- addr_
- The NetAddr that dimple is listening at.
This helpfile was created with the class HelpFile2