Options
Menu

Interface IAvatar

/interface/src/avatar/Avatar.h September 28th, 2014

Hierarchy

Index

Properties

attachmentData

attachmentData: IAttachmentData[]

audioAverageLoudness

audioAverageLoudness: number

float

audioLoudness

audioLoudness: number

float

billboardURL

billboardURL: string

bodyPitch

bodyPitch: number

float

bodyRoll

bodyRoll: number

float

bodyYaw

bodyYaw: number

float

chatMessage

chatMessage: string

collisionGroups

collisionGroups: IUInt32

collisionWithAvatar

collisionWithAvatar: ISignal

displayName

displayName: string

faceModelURL

faceModelURL: string

handPosition

handPosition: IVec3

headOrientation

headOrientation: IQuat

headPitch

headPitch: number

float

headRoll

headRoll: number

float

headYaw

headYaw: number

float

jointNames

jointNames: Array<string>

orientation

orientation: IQuat

position

position: IVec3

scale

scale: number

float

sessionUUID

sessionUUID: number

QUuid

skeletonModelURL

skeletonModelURL: string

Methods

attach

  • attach(modelURL: string, jointName?: string, translation?: IVec3, rotation?: IQuat, scale?: number, allowDuplicates?: boolean, useSaved?: boolean)
  • Parameters

    • modelURL: string
    • jointName?: string optional

      default ''

    • translation?: IVec3 optional

      default { x: 0, y: 0, z: 0 }

    • rotation?: IQuat optional

      default { x: 0, y: 0, z: 0, w: 0 }

    • scale?: number optional

      default 1.0

    • allowDuplicates?: boolean optional

      default false

    • useSaved?: boolean optional

      default true

clearJointData

  • clearJointData(index: number)
  • clearJointData(name: string)

clearJointsData

  • clearJointsData()

detachAll

  • detachAll(modelURL: string, jointName?: string)
  • Parameters

    • modelURL: string
    • jointName?: string optional

      default ''

detachOne

  • detachOne(modelURL: string, jointName?: string)
  • Parameters

    • modelURL: string
    • jointName?: string optional

      default ''

getAcceleration

  • getAcceleration(): IVec3
  • Returns IVec3

getAngularAcceleration

  • getAngularAcceleration(): IVec3
  • Returns IVec3

getAngularVelocity

  • getAngularVelocity(): IVec3
  • Returns IVec3

getAttachmentData

getHandState

  • getHandState(): number

getJointCombinedRotation

  • getJointCombinedRotation(index: number): IQuat
  • getJointCombinedRotation(name: string): IQuat
  • Parameters

    • index: number

    Returns IQuat

  • Parameters

    • name: string

    Returns IQuat

getJointIndex

  • getJointIndex(name: string): number
  • Returns the index of the joint with the specified name, or -1 if not found/unknown.

    Parameters

    • name: string

    Returns number

    int

getJointNames

  • getJointNames(): Array<string>

getJointPosition

  • getJointPosition(name: string): IVec3
  • getJointPosition(index: number): IVec3
  • Parameters

    • name: string

    Returns IVec3

  • Parameters

    • index: number

    Returns IVec3

getJointRotation

  • getJointRotation(index: number): IQuat

getJointRotations

  • getJointRotations(): IQuat[]

getJointRotatoin

  • getJointRotatoin(name: string): IQuat

getVelocity

  • Returns IVec3

hasReferential

  • hasReferential(): boolean

isJointDataValid

  • isJointDataValid(index: number): boolean
  • isJointDataValid(name: string): boolean

isPaused

  • isPaused(): boolean

isPlaying

  • isPlaying(): boolean

loadRecording

  • loadRecording(filename: string)

pausePlayer

  • pausePlayer()

play

  • play()

playerCurrentFrame

  • playerCurrentFrame(): number

playerElapsed

  • playerElapsed(): number

playerFrameNumber

  • playerFrameNumber(): number

playerLength

  • playerLength(): number

sendBillboardPacket

  • sendBillboardPacket()

sendIdentityPacket

  • sendIdentityPacket()

setAttachmentData

setBillboardFromNetworkReply

  • setBillboardFromNetworkReply()

setBlendShape

  • setBlendShape(name: string, val: number)

setHandState

  • setHandState(s: number)

setJointData

  • setJointData(index: number, rotation: IQuat)
  • setJointData(name: string, rotation: IQuat)

setJointMappingsFromNetworkReply

  • setJointMappingsFromNetworkReply()

setJointModelPositionAndOrientation

  • setJointModelPositionAndOrientation(index: number, position: IVec3, rotation: IQuat)
  • setJointModelPositionAndOrientation(name: string, position: IVec3, rotation: IQuat)
  • Parameters

    • index: number

      int

    • position: IVec3
    • rotation: IQuat
  • Parameters

setJointRotations

  • setJointRotations(jointRotations: IQuat[])

setPlayFromCurrentLocation

  • setPlayFromCurrentLocation(playFromCurrentLocation: boolean)

setPlayerFrame

  • setPlayerFrame(frame: number)

setPlayerLoop

  • setPlayerLoop(loop: boolean)

setPlayerTime

  • setPlayerTime(time: number)

setPlayerUseAttachments

  • setPlayerUseAttachments(useAttachments: boolean)

setPlayerUseDisplayName

  • setPlayerUseDisplayName(useDisplayName: boolean)

setPlayerUseHeadModel

  • setPlayerUseHeadModel(useHeadModel: boolean)

setSessionUUID

  • setSessionUUID(sessionUUID: number)

startPlaying

  • startPlaying()

stopPlaying

  • stopPlaying()

updateCollisionGroups

  • updateCollisionGroups()

Generated using TypeDoc