public class EnemyPhysics extends PhysicsComponent
PhysicsComponent.AABB, PhysicsComponent.BoundingVolume, PhysicsComponent.Collision, PhysicsComponent.Sphere
acceleration, 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, resolveSolidCollision
public void handlePhysics(GameObject object, double elapsedTime)
PhysicsComponent
handlePhysics
in class PhysicsComponent
object
- the object to updateelapsedTime
- the elapsed time since the last update