Physics2D
Polycode::PhysicsScreenEntity Class Reference

A 2D Physics enabled screen entity. More...

List of all members.

Public Member Functions

ScreenEntity * getScreenEntity ()
 Returns the screen entity associated with this physics entity.
void applyTorque (Number torque)
 Applies torque to the physics entity.
void applyForce (Vector2 force)
 Applies force to the physics entity.

Static Public Attributes

static const int ENTITY_RECT = 1
 Rectangular physics entity.
static const int ENTITY_CIRCLE = 2
 Circular physics entity.
static const int ENTITY_MESH = 3
 Mesh entity.

Detailed Description

A 2D Physics enabled screen entity.