dot big bang

Developer API
Menu

Class VoxelObject

All
  • Public
  • Public/Protected
  • All

Hierarchy

Index

Constructors

constructor

Accessors

animationDuration

  • get animationDuration(): number
  • The total duration of the VoxelObject animation, in seconds. This is the sum of the duration of each key in animation sequence.

    Returns number

animationKeyDurations

  • get animationKeyDurations(): number[]
  • The sequence of key durations making up the VoxelObject animation. Each duration in the returned array is in seconds.

    Returns number[]

id

  • get id(): string
  • The identifier string of the Resource. The id is unique across all Resources that have been created by all users.

    Returns string

name

  • get name(): string
  • The name given to the Resource by its creator.

    Returns string

type

Methods

getAnimationKeyStartTime

  • getAnimationKeyStartTime(keyIndex: number): number
  • Returns the time at which the keyIndex-th key starts in the animation sequence. If the index is negative the first key is used. If it's greater than the number of keys, the last key is used.

    Parameters

    • keyIndex: number

      The index of the key for which the start time is returned.

    Returns number