Options
All
  • Public
  • Public/Protected
  • All
Menu

Service for evaluating interpolation curves. It works with entities that have curve components such as BezierCurveFloat, LinearCurveVector3, and so on.

Hierarchy

  • InterpolationService

Index

Methods

Static evaluateCurveColor

  • Evaluates the Color value of the curve component at the given time. curveEntity must contain a Color curve component. (BezierCurveColor, LinearCurveColor, StepCurveColor and so on) To specify the type of time wrapping, add the CurveTimeWrapping component to curveEntity.

    Parameters

    Returns Color

Static evaluateCurveFloat

  • evaluateCurveFloat(world: WorldBase, time: number, curveEntity: Entity): number
  • Evaluates the Float value of the curve component at the given time. curveEntity must contain a float curve component (BezierCurveFloat, LinearCurveFloat, StepCurveFloat and so on). To specify the type of time wrapping, add the CurveTimeWrapping component to curveEntity.

    Parameters

    Returns number

Static evaluateCurveQuaternion

  • Evaluates the Quaternion value of the curve component at the given time. curveEntity must contain a Quaternion curve component. (BezierCurveQuaternion, LinearCurveQuaternion, StepCurveQuaternion and so on) To specify the type of time wrapping, add the CurveTimeWrapping component to curveEntity.

    Parameters

    Returns Quaternion

Static evaluateCurveVector2

  • Evaluates the Vector2 value of the curve component at the given time. curveEntity must contain a Vector2 curve component. (BezierCurveVector2, LinearCurveVector2, StepCurveVector2 and so on) To specify the type of time wrapping, add the CurveTimeWrapping component to curveEntity.

    Parameters

    Returns Vector2

Static evaluateCurveVector3

  • Evaluates the Vector3 value of the curve component at the given time. curveEntity must contain a Vector3 curve component. (BezierCurveVector3, LinearCurveVector3, StepCurveVector3 and so on) To specify the type of time wrapping, add the CurveTimeWrapping component to curveEntity.

    Parameters

    Returns Vector3

Generated using TypeDoc