|
Vec2 | getPointA () const |
| Get this edge's begin position. More...
|
|
Vec2 | getPointB () const |
| Get this edge's end position. More...
|
|
var | getPointB () |
| Get this edge's end position. More...
|
|
local | getPointB () |
| Get this edge's end position. More...
|
|
virtual Vec2 | getCenter () override |
| Get this edge's center position. More...
|
|
PhysicsBody * | getBody () const |
| Get the body that this shape attaches. More...
|
|
Type | getType () const |
| Return this shape's type. More...
|
|
float | getArea () const |
| Return this shape's area. More...
|
|
float | getMoment () const |
| Get this shape's moment. More...
|
|
void | setMoment (float moment) |
| Set this shape's moment. More...
|
|
void | setTag (int tag) |
| Set this shape's tag. More...
|
|
int | getTag () const |
| Get this shape's tag. More...
|
|
float | getMass () const |
| Get the mass of this shape. More...
|
|
void | setMass (float mass) |
| Set this shape's mass. More...
|
|
float | getDensity () const |
| Get this shape's density. More...
|
|
void | setDensity (float density) |
| Set this shape's density. More...
|
|
float | getRestitution () const |
| Get this shape's restitution. More...
|
|
void | setRestitution (float restitution) |
| Set this shape's restitution. More...
|
|
float | getFriction () const |
| Get this shape's friction. More...
|
|
void | setFriction (float friction) |
| Set this shape's friction. More...
|
|
const PhysicsMaterial & | getMaterial () const |
| Get this shape's PhysicsMaterial object. More...
|
|
local | getMaterial () |
| Get this shape's PhysicsMaterial object. More...
|
|
void | setMaterial (const PhysicsMaterial &material) |
| Set this shape's material. More...
|
|
local | setMaterial ( local material) |
| Set this shape's material. More...
|
|
virtual float | calculateDefaultMoment () |
| Calculate the default moment value. More...
|
|
virtual Vec2 | getOffset () |
| Get this shape's position offset. More...
|
|
bool | containsPoint (const Vec2 &point) const |
| Test point is inside this shape or not. More...
|
|
void | setCategoryBitmask (int bitmask) |
| Set a mask that defines which categories this physics body belongs to. More...
|
|
var | setCategoryBitmask ( var bitmask) |
| Set a mask that defines which categories this physics body belongs to. More...
|
|
local | setCategoryBitmask ( local bitmask) |
| Set a mask that defines which categories this physics body belongs to. More...
|
|
int | getCategoryBitmask () const |
| Get a mask that defines which categories this physics body belongs to. More...
|
|
var | getCategoryBitmask () |
| Get a mask that defines which categories this physics body belongs to. More...
|
|
local | getCategoryBitmask () |
| Get a mask that defines which categories this physics body belongs to. More...
|
|
void | setContactTestBitmask (int bitmask) |
| A mask that defines which categories of bodies cause intersection notifications with this physics body. More...
|
|
int | getContactTestBitmask () const |
| Get a mask that defines which categories of bodies cause intersection notifications with this physics body. More...
|
|
void | setCollisionBitmask (int bitmask) |
| A mask that defines which categories of physics bodies can collide with this physics body. More...
|
|
int | getCollisionBitmask () const |
| Get a mask that defines which categories of physics bodies can collide with this physics body. More...
|
|
void | setGroup (int group) |
| Set the group of body. More...
|
|
int | getGroup () |
| Get the group of body. More...
|
|
void | 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...
|
|
virtual | ~Ref () |
| Destructor. More...
|
|