com.threerings.tudey.util
Interface ActorAdvancer.Environment

All Known Implementing Classes:
ActiveLogic, AgentLogic, MobileLogic, PawnLogic, ToolSceneManager, ToolSceneView, TudeySceneManager, TudeySceneModel, TudeySceneView
Enclosing class:
ActorAdvancer

public static interface ActorAdvancer.Environment

Provides a callback mechanism to allow the advancer to query the actor's environment while advancing it.


Method Summary
 boolean collides(Actor actor, Shape shape)
          Checks whether the actor is colliding with anything.
 boolean getPenetration(Actor actor, Shape shape, Vector2f result)
          Checks whether the actor is colliding with anything and, if it is, populates the provided object with the penetration vector (the minimum translation required to cancel the penetration).
 TudeySceneModel getSceneModel()
          Returns a reference to the scene model.
 

Method Detail

getSceneModel

TudeySceneModel getSceneModel()
Returns a reference to the scene model.


getPenetration

boolean getPenetration(Actor actor,
                       Shape shape,
                       Vector2f result)
Checks whether the actor is colliding with anything and, if it is, populates the provided object with the penetration vector (the minimum translation required to cancel the penetration).

Returns:
true if a collision was detected (in which case the result vector will be populated), false otherwise.

collides

boolean collides(Actor actor,
                 Shape shape)
Checks whether the actor is colliding with anything.



Copyright © 2011. All Rights Reserved.