Most visited

Recently visited

PhysicsBody.CollisionListener

public static interface PhysicsBody.CollisionListener

com.viro.core.PhysicsBody.CollisionListener


Callback interface for responding to PhysicsBody collisions.

Summary

Public methods

abstract void onCollided(String tag, Vector position, Vector normal)

Callback invoked each time this listener's PhysicsBody enters a collision with another PhysicsBody.

Public methods

onCollided

void onCollided (String tag, 
                Vector position, 
                Vector normal)

Callback invoked each time this listener's PhysicsBody enters a collision with another PhysicsBody.

Parameters
tag String: The tag of the Node associated with the collided PhysicsBody.

position Vector: The position on this listener's PhysicsBody where the collision occurred.

normal Vector: The normal vector on the surface of this listener's PhysicsBody where the collision occurred.

Hooray!