Class PlayerGameObjectHitEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.PlayerGameObjectHitEvent
Called when a player hits a game object.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the game object that was hit by the player.Gets the normal, i.e the normal of the surface that was hit (the direction in which the surface points).Gets the coordinates where the element was hit exactly.Methods inherited from class net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Method Details
-
getGameObject
Gets the game object that was hit by the player.- Returns:
- the game object.
-
getHitPosition
Gets the coordinates where the element was hit exactly.- Returns:
- world coordinates where the element was hit.
-
getHitNormal
Gets the normal, i.e the normal of the surface that was hit (the direction in which the surface points).- Returns:
- the collision normal as a normalized
Vector3f
.
-