EntityMoveListener
interface EntityMoveListener
Listener for move actions. Callbacks are invoked as user interacts with the Entity.
Summary
Public functions |
|
|---|---|
open Unit |
onMoveEnd(Called when the user has finished moving the Entity. |
open Unit |
onMoveStart(Called when the user starts moving the Entity. |
open Unit |
onMoveUpdate(Called continuously while the user is moving the Entity. |
Public functions
onMoveEnd
open fun onMoveEnd(
entity: Entity,
finalInputRay: Ray,
finalPose: Pose,
finalScale: Float,
updatedParent: Entity?
): Unit
Called when the user has finished moving the Entity.
| Parameters | |
|---|---|
entity: Entity |
The Entity being moved. |
finalInputRay: Ray |
|
finalPose: Pose |
|
finalScale: Float |
Scale of the Entity during this event. |
updatedParent: Entity? |
If anchorPlacement is set, the Entity may have a new parent when the movement completes. This will be a new |
onMoveStart
open fun onMoveStart(
entity: Entity,
initialInputRay: Ray,
initialPose: Pose,
initialScale: Float,
initialParent: Entity
): Unit
Called when the user starts moving the Entity.
onMoveUpdate
open fun onMoveUpdate(
entity: Entity,
currentInputRay: Ray,
currentPose: Pose,
currentScale: Float
): Unit
Called continuously while the user is moving the Entity.