Constraint affects the movement of physics object, it usually connet one or two physics object. More...
Inherits Ref.
Inherited by Physics3D6DofConstraint, Physics3DConeTwistConstraint, Physics3DHingeConstraint, Physics3DPointToPointConstraint, and Physics3DSliderConstraint.
Public Member Functions | |
| float | getBreakingImpulse () const |
| get the impulse that break the constraint the impulse that break the constraint | |
| void | setBreakingImpulse (float impulse) |
| set the impulse that break the constraint the impulse that break the constraint | |
| bool | isEnabled () const |
| is it enabled whether the constraint is enabled | |
| void | setEnabled (bool enabled) |
| set enable or not whether the constraint will be enabled | |
| Physics3DRigidBody * | getBodyA () const |
| get rigid body a the Physics3DRigidBody A | |
| Physics3DRigidBody * | getBodyB () const |
| get rigid body b the Physics3DRigidBody B | |
| ConstraintType | getConstraintType () const |
| get constraint type the constraint type | |
| void | setUserData (void *userData) |
| get user data the user data will be seted | |
| void * | getUserData () const |
| get user data the user data | |
| int | getOverrideNumSolverIterations () const |
| get override number of solver iterations the override number of solver iterations | |
| void | setOverrideNumSolverIterations (int overideNumIterations) |
| override the number of constraint solver iterations used to solve this constraint, -1 will use the default number of iterations, as specified in SolverInfo.m_numIterations the number of constraint solver iterations | |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| local | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| local | getReferenceCount () |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
| Destructor. | |
Additional Inherited Members | |
Public Attributes inherited from Ref | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| local | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
| local | _luaID |
| Lua reference id. | |
| void * | _scriptObject |
| scriptObject, support for swift | |
| local | _scriptObject |
| scriptObject, support for swift | |
| bool | _rooted |
| When true, it means that the object was already rooted. | |
| local | _rooted |
| When true, it means that the object was already rooted. | |
| bool | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
| local | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
Constraint affects the movement of physics object, it usually connet one or two physics object.
There are some types of physics constraints.