Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NgxMixerComponent

The Mixer component.

See the ngx3js docs page for details.

<ngx3js-mixer [action]="'default'">
<ngx3js-clip [name]="'default'" [index]="0"></ngx3js-clip>
</ngx3js-mixer>
<ngx3js-mixer
[action]="controls.animation"
[type]="'Character'"
[skin]="controls.skinIdx" [weapon]="controls.weaponIdx"
></ngx3js-mixer>
<ngx3js-mixer
[type]="'MMDAnimationHelper'"
[mmdHelpers]="['iksolver', 'physics']"
[afterglow]="2.0" [gravity]="-9.8 * 10" [physics]="true"
(onLoad)="setMixer($event)"
></ngx3js-mixer>
<ngx3js-mixer
[type]="'MMDAnimationHelper'"
[animationHelper]="animationHelper"
></ngx3js-mixer>
<ngx3js-mixer
[type]="'MMDAnimationHelper'"
[afterglow]="2.0" [gravity]="-9.8 * 10" [physics]="true"
></ngx3js-mixer>
<ngx3js-mixer [action]="'run'" [delayTime]="info.delay">
<ngx3js-clip [name]="'run'" [index]="0"></ngx3js-clip>
</ngx3js-mixer>

Hierarchy

Implements

  • OnInit

Index

Constructors

constructor

Properties

Protected OBJECT_ATTR

OBJECT_ATTR: string[] = ...

Object attr of abstract subscribe component

Protected _changeList

_changeList: string[] = null

Change list of abstract subscribe component

Protected _needUpdate

_needUpdate: boolean = true

Need update of abstract subscribe component

action

action: string = ''

The Input of mixer component

Notice - case insensitive.

afterglow

afterglow: number = null

The afterglow of mixer component

angularSpeed

angularSpeed: number

The rate of MD2Character

see

MD2Character

animationFPS

animationFPS: number

The rate of MD2Character

see

MD2Character

animationHelper

animationHelper: NgxMixerComponent = null

The animationHelper of mixer component

backAcceleration

backAcceleration: number

The rate of MD2Character

see

MD2Character

controls

controls: ICharacterControl = null

The controls of mixer component

debug

debug: boolean = false

Debug this Object

delayTime

delayTime: number = null

The delayTime of mixer component

duration

duration: number = 0.5

Sets the duration for a single loop of this action (by adjusting AnimationAction.timeScale and stopping any scheduled warping). This method can be chained.

enabled

enabled: boolean = true

Enabled or Not

fps

fps: number = null

The fps of mixer component

frontAcceleration

frontAcceleration: number

The rate of MD2Character

see

MD2Character

frontDecceleration

frontDecceleration: number

The rate of MD2Character

see

MD2Character

gravity

gravity: number = null

The gravity of mixer component

Protected id

id: string = ''

The Id of abstract subscribe component

maxReverseSpeed

maxReverseSpeed: number

The rate of MD2Character

see

MD2Character

maxSpeed

maxSpeed: number

The rate of MD2Character

see

MD2Character

maxStepNum

maxStepNum: number = null

The maxStepNum of mixer component

mmdHelpers

mmdHelpers: string[] = null

The mmdHelpers of mixer component

onDestory

onDestory: EventEmitter<NgxMixerComponent> = ...

Will be called when before destory. The argument will be the loaded self

onLoad

onLoad: EventEmitter<NgxMixerComponent> = ...

Will be called when load completes. The argument will be the loaded self

overrideParams

overrideParams: {} = null

The override params

Type declaration

  • [key: string]: any

Protected parent

parent: any = null

The Parent of abstract subscribe component

physics

physics: boolean = null

The physics of mixer component

rate

rate: number = null

The rate of MD2Character

see

I3JS.MD2Character.setPlaybackRate

resetPhysicsOnLoop

resetPhysicsOnLoop: boolean = null

The resetPhysicsOnLoop of mixer component

scale

scale: number

The rate of MD2Character

see

MD2Character

Protected selfAny

selfAny: any = ...

skin

skin: string | number = null

The skin of mixer component

Protected subscribeType

subscribeType: string = null

Subscribe type of abstract subscribe component

sync

sync: boolean = null

The sync of mixer component

timeScale

timeScale: number = 1

Scaling factor for the KeyframeTrack.time. A value of 0 causes the animation to pause. Negative values cause the animation to play backwards. Default is 1. Properties/methods concerning timeScale (respectively time)

transitionFrames

transitionFrames: number

The rate of MD2Character

see

MD2Character

tween

tween: {} = null

Tween animation params

Type declaration

  • [key: string]: any

type

type: string = 'mixer'

The Input of mixer component

Notice - case insensitive.

unitStep

unitStep: number = null

The unitStep of mixer component

userData

userData: any = null

An object that can be used to store custom data about the Object3D. It should not hold references to functions as these will not be cloned.

warmup

warmup: number = null

The warmup of mixer component

weapon

weapon: string | number = null

The weapon of mixer component

windowExport

windowExport: string = null

Export this Object to window global variables

wireframe

wireframe: boolean = null

The wireframe of mixer component

Accessors

needUpdate

  • set needUpdate(value: boolean): void
  • Sets need update

    Parameters

    • value: boolean

    Returns void

Methods

addChanges

  • addChanges(key: string | string[] | SimpleChanges): void

applyChanges

  • applyChanges(changes: string[]): void

Protected callOnLoad

  • callOnLoad(): void

Protected checkChanges

  • checkChanges(changes: SimpleChanges): SimpleChanges

checkModel

Protected clearChanges

  • clearChanges(): void

Protected consoleLog

  • consoleLog(key: string, object: any, level?: string): void

Protected consoleLogTime

  • consoleLogTime(key: string, object: any, repeat?: number): void

Protected destroyLocalComponent

  • destroyLocalComponent(key: string): void

dispose

  • dispose(): void

fadeToAction

  • fadeToAction(endAction: string, duration?: number, restoreAction?: string, restoreDuration?: number): void
  • Fades to action

    Parameters

    • endAction: string
    • Optional duration: number
    • Optional restoreAction: string
    • Optional restoreDuration: number

    Returns void

Protected getChanges

  • getChanges(): string[]

getId

  • getId(): string

getMixer

getMmdAnimationHelper

getMmdAnimationHelperObject3D

getObject

  • getObject<T>(): T

getSubscribe

  • getSubscribe(): Observable<string[]>

Protected getTimeout

  • getTimeout(timeDelay?: number): Promise<void>

getUserData

  • getUserData(): {}

Protected initLocalComponent

  • initLocalComponent<T>(key: string, component: T): T

Protected isIdEuals

  • isIdEuals(id: string): boolean

ngAfterContentInit

  • ngAfterContentInit(): void

ngOnChanges

  • ngOnChanges(changes: SimpleChanges): void
  • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated. default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.

    Parameters

    • changes: SimpleChanges

      The changed properties.

    Returns void

ngOnDestroy

  • ngOnDestroy(): void

ngOnInit

  • ngOnInit(): void
  • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

    Returns void

play

  • play(name: string, duration?: number): boolean

resetTween

  • resetTween(): void

runSubscribeNext

  • runSubscribeNext(key: string | string[]): void

Protected setObject

  • setObject(obj: any): void

setParent

setPhysics

setSubscribeNext

  • setSubscribeNext(key: string | string[]): void

setSubscribeType

  • setSubscribeType(subscribeType: string): void

setTween

  • setTween(tweenData: {}): void

setTweenTarget

  • setTweenTarget(tweenTarget: any): void

setUserData

  • setUserData(key: string, value: any): void

Protected subscribeListQuery

  • subscribeListQuery(queryList: QueryList<any>, subscribeKey: string, changeKey: string): void

Protected subscribeListQueryChange

  • subscribeListQueryChange(queryList: QueryList<any>, subscribeKey: string, changeKey: string): void

Protected subscribeRefer

  • subscribeRefer(key: string, subscription: Subscription): void

Protected subscribeReferList

  • subscribeReferList(key: string, subscription: Subscription): void

synkAnimationHelper

Protected unSubscribeRefer

  • unSubscribeRefer(key: string): void

Protected unSubscribeReferList

  • unSubscribeReferList(key: string): void

Protected unSubscription

  • unSubscription(subscriptions: Subscription[]): Subscription[]

update

updateInputParams

  • updateInputParams(params: {}, firstChange?: boolean, changes?: SimpleChanges, type?: string): void

Generated using TypeDoc