|
float | calculateDefaultMoment () override |
| Calculate the default moment value. More...
|
|
Vec2 | getPoint (int i) const |
local | getPoint ( local i) |
void | getPoints (Vec2 *outPoints) const |
local | getPoints ( local outPoints) |
int | getPointsCount () const |
local | getPointsCount () |
virtual Vec2 | getCenter () override |
| Get center of this shape. More...
|
|
local | getCenter () |
| Get center of this shape. More...
|
|
PhysicsBody * | getBody () const |
| Get the body that this shape attaches. More...
|
|
Type | getType () const |
| Return the type of this shape. More...
|
|
var | getType () |
| Return the type of this shape. More...
|
|
local | getType () |
| Return the type of this shape. More...
|
|
float | getArea () const |
| return the area of this shape More...
|
|
local | getArea () |
| return the area of this shape More...
|
|
float | getMoment () const |
| get moment More...
|
|
local | getMoment () |
| get moment More...
|
|
void | setMoment (float moment) |
| Set moment, it will change the body's moment this shape attaches. More...
|
|
var | setMoment ( var moment) |
| Set moment, it will change the body's moment this shape attaches. More...
|
|
local | setMoment ( local moment) |
| Set moment, it will change the body's moment this shape attaches. More...
|
|
void | setTag (int tag) |
int | getTag () const |
local | getTag () |
float | getMass () const |
| get mass More...
|
|
var | getMass () |
| get mass More...
|
|
local | getMass () |
| get mass More...
|
|
void | setMass (float mass) |
| Set mass, it will change the body's mass this shape attaches. More...
|
|
var | setMass ( var mass) |
| Set mass, it will change the body's mass this shape attaches. More...
|
|
local | setMass ( local mass) |
| Set mass, it will change the body's mass this shape attaches. More...
|
|
float | getDensity () const |
local | getDensity () |
void | setDensity (float density) |
local | setDensity ( local density) |
float | getRestitution () const |
local | getRestitution () |
void | setRestitution (float restitution) |
local | setRestitution ( local restitution) |
float | getFriction () const |
var | getFriction () |
local | getFriction () |
void | setFriction (float friction) |
local | setFriction ( local friction) |
const PhysicsMaterial & | getMaterial () const |
void | setMaterial (const PhysicsMaterial &material) |
var | setMaterial ( var material) |
local | setMaterial ( local material) |
virtual Vec2 | getOffset () |
| Get offset. More...
|
|
local | getOffset () |
| Get offset. More...
|
|
bool | containsPoint (const Vec2 &point) const |
| Test point is in shape or not. More...
|
|
var | containsPoint ( var point) |
| Test point is in shape or not. More...
|
|
local | containsPoint ( local point) |
| Test point is in shape or not. More...
|
|
void | setCategoryBitmask (int bitmask) |
| A mask that defines which categories this physics body belongs to. More...
|
|
int | getCategoryBitmask () const |
void | setContactTestBitmask (int bitmask) |
| A mask that defines which categories of bodies cause intersection notifications with this physics body. More...
|
|
int | getContactTestBitmask () const |
var | getContactTestBitmask () |
local | getContactTestBitmask () |
void | setCollisionBitmask (int bitmask) |
| A mask that defines which categories of physics bodies can collide with this physics body. More...
|
|
int | getCollisionBitmask () const |
local | getCollisionBitmask () |
void | setGroup (int group) |
| set the group of body Collision groups let you specify an integral group index. More...
|
|
var | setGroup ( var group) |
| set the group of body Collision groups let you specify an integral group index. More...
|
|
local | setGroup ( local group) |
| set the group of body Collision groups let you specify an integral group index. More...
|
|
int | getGroup () |
var | getGroup () |
local | getGroup () |
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 () |