cocos2d-x  3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PhysicsJointRatchet Class Reference

Works like a socket wrench. More...

#include <CCPhysicsJoint.h>

Inheritance diagram for PhysicsJointRatchet:
PhysicsJoint

Public Member Functions

float getAngle () const
void setAngle (float angle)
local setAngle ( local angle)
float getPhase () const
var getPhase ()
local getPhase ()
void setPhase (float phase)
local setPhase ( local phase)
float getRatchet () const
var getRatchet ()
local getRatchet ()
void setRatchet (float ratchet)
local setRatchet ( local ratchet)
virtual bool createConstraints () override
local createConstraints ()
- Public Member Functions inherited from PhysicsJoint
PhysicsBodygetBodyA () const
var getBodyA ()
local getBodyA ()
PhysicsBodygetBodyB () const
var getBodyB ()
local getBodyB ()
PhysicsWorldgetWorld () const
var getWorld ()
local getWorld ()
int getTag () const
var getTag ()
local getTag ()
void setTag (int tag)
local setTag ( local tag)
bool isEnabled () const
local isEnabled ()
void setEnable (bool enable)
 Enable/Disable the joint. More...
 
var setEnable ( var enable)
 Enable/Disable the joint. More...
 
local setEnable ( local enable)
 Enable/Disable the joint. More...
 
bool isCollisionEnabled () const
void setCollisionEnable (bool enable)
 Enable/disable the collision between two bodies. More...
 
var setCollisionEnable ( var enable)
 Enable/disable the collision between two bodies. More...
 
local setCollisionEnable ( local enable)
 Enable/disable the collision between two bodies. More...
 
void removeFormWorld ()
 Remove the joint from the world. More...
 
local removeFormWorld ()
 Remove the joint from the world. More...
 
void setMaxForce (float force)
 Set the max force between two bodies. More...
 
var setMaxForce ( var force)
 Set the max force between two bodies. More...
 
local setMaxForce ( local force)
 Set the max force between two bodies. More...
 
float getMaxForce () const
 Get the max force setting. More...
 

Static Public Member Functions

static PhysicsJointRatchetconstruct (PhysicsBody *a, PhysicsBody *b, float phase, float ratchet)
local construct ( local a, local b, local phase, local ratchet)

Protected Member Functions

 PhysicsJointRatchet ()
 PhysicsJointRatchet ()
 PhysicsJointRatchet ()
virtual ~PhysicsJointRatchet ()
var ~PhysicsJointRatchet ()
local ~PhysicsJointRatchet ()
- Protected Member Functions inherited from PhysicsJoint
 PhysicsJoint ()
 PhysicsJoint ()
virtual ~PhysicsJoint ()=0
local ~PhysicsJoint ()
bool init (PhysicsBody *a, PhysicsBody *b)
local init ( local a, local b)
bool initJoint ()
local initJoint ()

Protected Attributes

float _phase
var _phase
local _phase
float _ratchet
var _ratchet
local _ratchet
- Protected Attributes inherited from PhysicsJoint
std::vector< cpConstraint * > _cpConstraints
var _cpConstraints
local _cpConstraints
PhysicsBody_bodyA
var _bodyA
local _bodyA
PhysicsBody_bodyB
var _bodyB
local _bodyB
PhysicsWorld_world
var _world
local _world
bool _enable
var _enable
local _enable
bool _collisionEnable
var _collisionEnable
local _collisionEnable
bool _destoryMark
var _destoryMark
local _destoryMark
int _tag
var _tag
local _tag
float _maxForce
var _maxForce
local _maxForce
bool _initDirty
var _initDirty
local _initDirty

Detailed Description

Works like a socket wrench.

Constructor & Destructor Documentation

PhysicsJointRatchet ( )
inlineprotected
var PhysicsJointRatchet ( )
inlineprotected
local PhysicsJointRatchet ( )
inlineprotected
virtual ~PhysicsJointRatchet ( )
inlineprotectedvirtual
var ~PhysicsJointRatchet ( )
inlineprotectedvirtual
local ~PhysicsJointRatchet ( )
inlineprotectedvirtual

Member Function Documentation

static PhysicsJointRatchet*
construct
( PhysicsBody a,
PhysicsBody b,
float  phase,
float  ratchet 
)
static
var construct ( var  a,
var  b,
var  phase,
var  ratchet 
)
static
local construct ( local  a,
local  b,
local  phase,
local  ratchet 
)
static
virtual bool createConstraints ( )
overridevirtual

Reimplemented from PhysicsJoint.

var createConstraints ( )
overridevirtual

Reimplemented from PhysicsJoint.

local createConstraints ( )
overridevirtual

Reimplemented from PhysicsJoint.

float getAngle ( ) const
var getAngle ( )
local getAngle ( )
float getPhase ( ) const
var getPhase ( )
local getPhase ( )
float getRatchet ( ) const
var getRatchet ( )
local getRatchet ( )
void setAngle ( float  angle)
var setAngle ( var  angle)
local setAngle ( local  angle)
void setPhase ( float  phase)
var setPhase ( var  phase)
local setPhase ( local  phase)
void setRatchet ( float  ratchet)
var setRatchet ( var  ratchet)
local setRatchet ( local  ratchet)

Member Data Documentation

float _phase
protected
var _phase
protected
local _phase
protected
float _ratchet
protected
var _ratchet
protected
local _ratchet
protected

The documentation for this class was generated from the following file: