|
virtual Vec2 | getCenter () override |
| Get this polygon's center position.
|
|
void | getPoints (Vec2 *outPoints) const |
| Get this polygon's points array.
|
|
int | getPointsCount () const |
| Get this polygon's points array count.
|
|
PhysicsBody * | getBody () const |
| Get the body that this shape attaches.
|
|
Type | getType () const |
| Return this shape's type.
|
|
float | getArea () const |
| Return this shape's area.
|
|
float | getMoment () const |
| Get this shape's moment.
|
|
void | setMoment (float moment) |
| Set this shape's moment.
|
|
void | setTag (int tag) |
| Set this shape's tag.
|
|
int | getTag () const |
| Get this shape's tag.
|
|
float | getMass () const |
| Get the mass of this shape.
|
|
void | setMass (float mass) |
| Set this shape's mass.
|
|
float | getDensity () const |
| Get this shape's density.
|
|
void | setDensity (float density) |
| Set this shape's density.
|
|
float | getRestitution () const |
| Get this shape's restitution.
|
|
void | setRestitution (float restitution) |
| Set this shape's restitution.
|
|
float | getFriction () const |
| Get this shape's friction.
|
|
void | setFriction (float friction) |
| Set this shape's friction.
|
|
const PhysicsMaterial & | getMaterial () const |
| Get this shape's PhysicsMaterial object.
|
|
void | setMaterial (const PhysicsMaterial &material) |
| Set this shape's material.
|
|
virtual float | calculateDefaultMoment () |
| Calculate the default moment value.
|
|
virtual Vec2 | getOffset () |
| Get this shape's position offset.
|
|
bool | containsPoint (const Vec2 &point) const |
| Test point is inside this shape or not.
|
|
void | setCategoryBitmask (int bitmask) |
| Set a mask that defines which categories this physics body belongs to.
|
|
int | getCategoryBitmask () const |
| Get a mask that defines which categories this physics body belongs to.
|
|
void | setContactTestBitmask (int bitmask) |
| A mask that defines which categories of bodies cause intersection notifications with this physics body.
|
|
int | getContactTestBitmask () const |
| Get a mask that defines which categories of bodies cause intersection notifications with this physics body.
|
|
void | setCollisionBitmask (int bitmask) |
| A mask that defines which categories of physics bodies can collide with this physics body.
|
|
int | getCollisionBitmask () const |
| Get a mask that defines which categories of physics bodies can collide with this physics body.
|
|
void | setGroup (int group) |
| Set the group of body.
|
|
int | getGroup () |
| Get the group of body.
|
|
void | retain () |
| Retains the ownership.
|
|
void | release () |
| Releases the ownership immediately.
|
|
Ref * | autorelease () |
| Releases the ownership sometime soon automatically.
|
|
unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count.
|
|
virtual | ~Ref () |
| Destructor.
|
|