public class PlayerElementCollisionEvent extends PlayerEvent
World3DModel, or more precisely, when the
player collides with the collision shape of the element. This means the event only
works for elements which have a collision shape.isColliding() returns false in this case).World3DModel.setListenForCollisions(boolean) is
set to true.| Constructor and Description |
|---|
PlayerElementCollisionEvent(Player player,
WorldElement worldElement,
boolean colliding,
float appliedImpulse) |
| Modifier and Type | Method and Description |
|---|---|
WorldElement |
getWorldElement()
Gets the world element.
|
boolean |
isColliding()
Gets whether or not the player is currently "touching" (colliding with) the
element.
|
getPlayerpublic PlayerElementCollisionEvent(Player player, WorldElement worldElement, boolean colliding, float appliedImpulse)
public WorldElement getWorldElement()
public boolean isColliding()