Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • YAnimators

Index

Constructors

constructor

Methods

Static aimTo

  • aimTo(obj: YEntity | YLogic | YGroup, targetObject: YEntity | YLogic | YGroup, offset: YVector3, offsetIsRelative: boolean, maxSpeed: number, acceleration: number, distanceToStartRotation: number, distanceToEndRotation: number, x: boolean, y: boolean, z: boolean): void
  • Rotates selected animated object towards target object.

    Parameters

    • obj: YEntity | YLogic | YGroup
    • targetObject: YEntity | YLogic | YGroup
    • offset: YVector3
    • offsetIsRelative: boolean
    • maxSpeed: number
    • acceleration: number
    • distanceToStartRotation: number
    • distanceToEndRotation: number
    • x: boolean
    • y: boolean
    • z: boolean

    Returns void

Static follow

  • follow(obj: YEntity | YLogic | YGroup, targetObject: YEntity | YLogic | YGroup, offset: YVector3, offsetIsRelative: boolean, maxSpeed: number, acceleration: number, distanceToStartMovement: number, distanceToEndMovement: number): void
  • Moves selected animated object towards target object.

    Parameters

    Returns void

Static getController

  • Allows to get a reference to the Custom Controller Game Logic of the target object, if it has any attached.

    Parameters

    Returns YController

Static getControllerParameterVariable

  • Returns the value of selected paramater of target object.

    Parameters

    Returns any

Static getPositionAnimator

Static getPossessedObject

Static getPossessor

Static getRotationAnimator

Static moveToSpeed

  • Moves the animated object to the target position at specified speed.

    Parameters

    Returns void

Static moveToTime

  • Moves the animated object to the target position in specified time.

    Parameters

    Returns void

Static rotateToSpeed

  • Rotates the animated object to the target rotation at specified speed.

    Parameters

    Returns void

Static rotateToTime

  • Rotates the animated object to the target rotation in specified time.

    Parameters

    Returns void

Static setController

  • Allows to attach a Custom Controller Game Logic to the target object.

    Parameters

    Returns void

Static setControllerParameterVariable

  • Allows to set the custom controller to the target *object, allowing it to be possessed by a player.

    Parameters

    Returns void

Static setPositionAnimator

Static setPossessedObject

Static setRotationAnimator

Static stopMovement

  • Stops any movement instruction or animator that is currently assigned to the object.

    Parameters

    Returns void

Static stopRotation

  • Stops any rotation instruction or animator that is currently assigned to the object.

    Parameters

    Returns void

Generated using TypeDoc