DimpleConstraint

Represents a constraint between two objects in the dimple world.

Inherits from:: Object : DimpleThing

The property 'response/spring' (stiffness, damping) is valid for hinge, hinge2, universal, slide and piston.

Linear constraints (piston, slide) can have the property 'force' (x,y,z).

Rotational constraints (with one axis, i.e. piston, hinge, ball) support also 'torque'.

The constraints 'universal' and 'hinge2' can have two torques (properties 'torque1' and 'torque2').

Creation / Class Methods

*lastid_
*lastid
Internal counter to create unique names for each object
*new(dimple,type,a,b,argVector)
Create a new instance of a DimpleConstraint.
a
Object 1
dimple
The instance of Dimple that this constraint belongs to
b
Object 2
argVector
Vector with arguments for the constraint.
type
The type of constraint ('fixed','slide','piston','universal','hinge','hinge2','ball')

Accessing Instance and Class Variables

spring_(a,b)
Set the spring response.
a
Stiffness
b
Damping
destroy(osc)
Destroy this object.
osc
Whether or not to send the osc message to dimple (default true)
objectA
Object one.
objectB
Object two (can also be the DimpleWorld).
argVector
argVector_
The argument vector with which this constraint is created.
type
type_
Type of constraint.

This helpfile was created with the class HelpFile2