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

Attach body a to a line, and attach body b to a dot. More...

#include <CCPhysicsJoint.h>

Inheritance diagram for PhysicsJointGroove:
PhysicsJoint

Public Member Functions

Vec2 getGrooveA () const
var getGrooveA ()
local getGrooveA ()
void setGrooveA (const Vec2 &grooveA)
local setGrooveA ( local grooveA)
Vec2 getGrooveB () const
void setGrooveB (const Vec2 &grooveB)
var setGrooveB ( var grooveB)
local setGrooveB ( local grooveB)
Vec2 getAnchr2 () const
var getAnchr2 ()
local getAnchr2 ()
void setAnchr2 (const Vec2 &anchr2)
var setAnchr2 ( var anchr2)
local setAnchr2 ( local anchr2)
virtual bool createConstraints () override
var createConstraints ()
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 PhysicsJointGrooveconstruct (PhysicsBody *a, PhysicsBody *b, const Vec2 &grooveA, const Vec2 &grooveB, const Vec2 &anchr2)
var construct ( var a, var b, var grooveA, var grooveB, var anchr2)
local construct ( local a, local b, local grooveA, local grooveB, local anchr2)

Protected Member Functions

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

Vec2 _grooveA
Vec2 _grooveB
var _grooveB
local _grooveB
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

Detailed Description

Attach body a to a line, and attach body b to a dot.

Constructor & Destructor Documentation

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

Member Function Documentation

static PhysicsJointGroove*
construct
( PhysicsBody a,
PhysicsBody b,
const Vec2 grooveA,
const Vec2 grooveB,
const Vec2 anchr2 
)
static
var construct ( var  a,
var  b,
var  grooveA,
var  grooveB,
var  anchr2 
)
static
local construct ( local  a,
local  b,
local  grooveA,
local  grooveB,
local  anchr2 
)
static
virtual bool createConstraints ( )
overridevirtual

Reimplemented from PhysicsJoint.

var createConstraints ( )
overridevirtual

Reimplemented from PhysicsJoint.

local createConstraints ( )
overridevirtual

Reimplemented from PhysicsJoint.

Vec2 getAnchr2 ( ) const
var getAnchr2 ( )
local getAnchr2 ( )
Vec2 getGrooveA ( ) const
var getGrooveA ( )
local getGrooveA ( )
Vec2 getGrooveB ( ) const
var getGrooveB ( )
local getGrooveB ( )
void setAnchr2 ( const Vec2 anchr2)
var setAnchr2 ( var  anchr2)
local setAnchr2 ( local  anchr2)
void setGrooveA ( const Vec2 grooveA)
var setGrooveA ( var  grooveA)
local setGrooveA ( local  grooveA)
void setGrooveB ( const Vec2 grooveB)
var setGrooveB ( var  grooveB)
local setGrooveB ( local  grooveB)

Member Data Documentation

Vec2 _anchr2
protected
var _anchr2
protected
local _anchr2
protected
Vec2 _grooveA
protected
var _grooveA
protected
local _grooveA
protected
Vec2 _grooveB
protected
var _grooveB
protected
local _grooveB
protected

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