Most visited

Recently visited

PhysicsWorld.HitTestListener

public static interface PhysicsWorld.HitTestListener

com.viro.core.PhysicsWorld.HitTestListener


Callback used when hit tests are completed. This callback does not indicate what collisions occurred: each PhysicsBody's individual PhysicsBody.CollisionListener will receive those collision callbacks.

Summary

Public methods

abstract void onComplete(boolean hasHit)

Invoked when a hit test has completed.

Public methods

onComplete

void onComplete (boolean hasHit)

Invoked when a hit test has completed. Each individual PhysicsBody receives in its PhysicsBody.CollisionListener a onCollided(String, Vector, Vector) upon collision. This callback only returns if there was any hit.

Parameters
hasHit boolean: True if the hit test intersected with anything.

Hooray!