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

#include <CCPhysicsJoint.h>

Inheritance diagram for PhysicsJointPin:
PhysicsJoint

Public Member Functions

virtual bool createConstraints () override
- 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 PhysicsJointPinconstruct (PhysicsBody *a, PhysicsBody *b, const Vec2 &pivot)
var construct ( var a, var b, var pivot)
local construct ( local a, local b, local pivot)
static PhysicsJointPinconstruct (PhysicsBody *a, PhysicsBody *b, const Vec2 &anchr1, const Vec2 &anchr2)
local construct ( local a, local b, local anchr1, local anchr2)

Protected Member Functions

 PhysicsJointPin ()
 PhysicsJointPin ()
virtual ~PhysicsJointPin ()
local ~PhysicsJointPin ()
- 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

bool _useSpecificAnchr
var _useSpecificAnchr
local _useSpecificAnchr
Vec2 _anchr1
var _anchr1
local _anchr1
Vec2 _anchr2
var _anchr2
local _anchr2
- 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

Constructor & Destructor Documentation

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

Member Function Documentation

static PhysicsJointPin* construct ( PhysicsBody a,
PhysicsBody b,
const Vec2 pivot 
)
static
var construct ( var  a,
var  b,
var  pivot 
)
static
local construct ( local  a,
local  b,
local  pivot 
)
static
static PhysicsJointPin* construct ( PhysicsBody a,
PhysicsBody b,
const Vec2 anchr1,
const Vec2 anchr2 
)
static
var construct ( var  a,
var  b,
var  anchr1,
var  anchr2 
)
static
local construct ( local  a,
local  b,
local  anchr1,
local  anchr2 
)
static
virtual bool createConstraints ( )
overridevirtual

Reimplemented from PhysicsJoint.

var createConstraints ( )
overridevirtual

Reimplemented from PhysicsJoint.

local createConstraints ( )
overridevirtual

Reimplemented from PhysicsJoint.

Member Data Documentation

Vec2 _anchr1
protected
var _anchr1
protected
local _anchr1
protected
Vec2 _anchr2
protected
var _anchr2
protected
local _anchr2
protected
bool _useSpecificAnchr
protected
var _useSpecificAnchr
protected
local _useSpecificAnchr
protected

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