public class EnemyPhysics extends PhysicsComponent
PhysicsComponent.AABB, PhysicsComponent.BoundingVolume, PhysicsComponent.Collision, PhysicsComponent.Sphereacceleration, boundingVolume, gravity, RECTANGULAR, SPHERE, x_Vel, y_Vel| Constructor and Description |
|---|
EnemyPhysics(float x_Pos,
float y_Pos,
float scale) |
| Modifier and Type | Method and Description |
|---|---|
void |
handlePhysics(GameObject object,
double elapsedTime)
updates an objects bounding volume, position and reactes to collisions
|
getCollisionPoint, intersects, intersects, intersects, leapFrogIntegration, resolveSolidCollisionpublic void handlePhysics(GameObject object, double elapsedTime)
PhysicsComponenthandlePhysics in class PhysicsComponentobject - the object to updateelapsedTime - the elapsed time since the last update