Options
All
  • Public
  • Public/Protected
  • All
V1.7
  • V1.6
  • V1.7
Menu

Class MeshShapeSampler

Hierarchy

Index

Constructors

constructor

Methods

getAngularVelocity

  • getAngularVelocity(): [number, number, number]

getAnimLoopCount

  • getAnimLoopCount(): number

getAnimTimeBegin

  • getAnimTimeBegin(): number

getAnimTimeEnd

  • getAnimTimeEnd(): number

getAnimTimeStart

  • getAnimTimeStart(): number

getAnimation

  • getAnimation(): string

getChannels

  • getChannels(): number

getLinearVelocity

  • getLinearVelocity(): [number, number, number]

getMesh

  • getMesh(): string

getScale

  • getScale(): number

getSubMeshIndex

  • getSubMeshIndex(): number

getType

setAngularVelocity

  • setAngularVelocity(velocity: [number, number, number] | Float32Array): void

setAnimation

  • setAnimation(animation: string): void

setAnimationTiming

  • setAnimationTiming(beginTime: number, endTime: number, startTime: number, loopCount: number): void
  • Sets custom params for controlling the timing of the animation. By default, the animation will play starting at time 0, go to the natural end of the animation, and loop forever.

    priv

    none

    Parameters

    • beginTime: number

      The beginning of the animation loop.

    • endTime: number

      The end of the animation loop. Must be >= beginTime. <0 will go to the natural end of the animation.

    • startTime: number

      Where the animation will start when first played. Must be >= beginTime and <= endTime.

    • loopCount: number

      How many times the animation will loop. If < 0, will loop infinitely.

    Returns void

setChannels

  • setChannels(channels: number): void
  • Sets which channels will be used for the mesh. Generally doesn't need to be called, as the channels will be set up correctly for the sampler.

    priv

    none

    Parameters

    • channels: number

      Channel values or'ed together

    Returns void

setLinearVelocity

  • setLinearVelocity(velocity: [number, number, number] | Float32Array): void

setMesh

  • setMesh(mesh: string): void

setScale

  • setScale(scale: number): void

setSubMeshIndex

  • setSubMeshIndex(index: number): void
  • Sets the sub-mesh index to use, if the mesh has multiple sub-meshes. If the mesh contains both static and skinned sub-meshes, the index will start with the static meshes, and then go to the skinned meshes.

    priv

    none

    Parameters

    • index: number

      Sub-mesh index.

    Returns void

Generated using TypeDoc