Point to point constraint limits the translation so that the local pivot points of 2 rigidbodies match in worldspace. More...
Inherits Physics3DConstraint.
Public Member Functions | |
void | setPivotPointInA (const cocos2d::Vec3 &pivotA) |
set pivot point in A's local space pivot point in A's local space | |
void | setPivotPointInB (const cocos2d::Vec3 &pivotB) |
set pivot point in B's local space pivot point in B's local space | |
cocos2d::Vec3 | getPivotPointInA () const |
get pivot point in A's local space pivot point in A's local space | |
cocos2d::Vec3 | getPivotPointInB () const |
get pivot point in B's local space pivot point in B's local space | |
Public Member Functions inherited from Physics3DConstraint | |
float | getBreakingImpulse () const |
get the impulse that break the constraint the impulse that break the constraint | |
var | getBreakingImpulse () |
get the impulse that break the constraint the impulse that break the constraint | |
local | getBreakingImpulse () |
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 | |
local | getBodyA () |
get rigid body a the Physics3DRigidBody A | |
Physics3DRigidBody * | getBodyB () const |
get rigid body b the Physics3DRigidBody B | |
local | getBodyB () |
get rigid body b the Physics3DRigidBody B | |
ConstraintType | getConstraintType () const |
get constraint type the constraint type | |
var | getConstraintType () |
get constraint type the constraint type | |
local | getConstraintType () |
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. | |
Static Public Member Functions | |
static Physics3DPointToPointConstraint * | create (Physics3DRigidBody *rbA, const cocos2d::Vec3 &pivotPointInA) |
create point to point constraint, limits the translation of local pivot point of rigid body A The rigid body going to be fixed local pivot point in A's local space created constraint | |
local | create ( local rbA, local pivotPointInA) |
create point to point constraint, limits the translation of local pivot point of rigid body A The rigid body going to be fixed local pivot point in A's local space created constraint | |
static Physics3DPointToPointConstraint * | create (Physics3DRigidBody *rbA, Physics3DRigidBody *rbB, const cocos2d::Vec3 &pivotPointInA, const cocos2d::Vec3 &pivotPointInB) |
create point to point constraint, make the local pivot points of 2 rigid bodies match in worldspace. More... | |
var | create ( var rbA, var rbB, var pivotPointInA, var pivotPointInB) |
create point to point constraint, make the local pivot points of 2 rigid bodies match in worldspace. More... | |
local | create ( local rbA, local rbB, local pivotPointInA, local pivotPointInB) |
create point to point constraint, make the local pivot points of 2 rigid bodies match in worldspace. More... | |
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... | |
Point to point constraint limits the translation so that the local pivot points of 2 rigidbodies match in worldspace.
|
static |
create point to point constraint, make the local pivot points of 2 rigid bodies match in worldspace.
The rigid body A going to be fixed The rigid body B going to be fixed local pivot point in A's local space local pivot point in B's local space created constraint
|
static |
create point to point constraint, make the local pivot points of 2 rigid bodies match in worldspace.
The rigid body A going to be fixed The rigid body B going to be fixed local pivot point in A's local space local pivot point in B's local space created constraint
|
static |
create point to point constraint, make the local pivot points of 2 rigid bodies match in worldspace.
The rigid body A going to be fixed The rigid body B going to be fixed local pivot point in A's local space local pivot point in B's local space created constraint