Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NgxPhysicsConstraintComponent

The Physics Constraint component.

See the ngx3js docs page for details. See the ngx physics page for a live demo.

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

axisx

axisx: number = null

The axisx of physics constraint component

axisy

axisy: number = null

The axisy of physics constraint component

axisz

axisz: number = null

The axisz of physics constraint component

debug

debug: boolean = false

Debug this Object

disableCollisionsBetweenLinkedBodies

disableCollisionsBetweenLinkedBodies: boolean = true

The disableCollisionsBetweenLinkedBodies of physics constraint componenta

enableMotor

enableMotor: boolean = false

The enableMotor of physics constraint component

enabled

enabled: boolean = true

Enabled or Not

Protected id

id: string = ''

The Id of abstract subscribe component

maxMotorImpulse

maxMotorImpulse: number = 0

The maxMotorImpulse of physics constraint component

onDestory

onDestory: EventEmitter<NgxPhysicsConstraintComponent> = ...

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

onLoad

onLoad: EventEmitter<NgxPhysicsConstraintComponent> = ...

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

pivot1x

pivot1x: number = null

The pivot1x of physics constraint component

pivot1y

pivot1y: number = null

The pivot1y of physics constraint component

pivot1z

pivot1z: number = null

The pivot1z of physics constraint component

pivot2x

pivot2x: number = null

The pivot2x of physics constraint component

pivot2y

pivot2y: number = null

The pivot2y of physics constraint component

pivot2z

pivot2z: number = null

The pivot2z of physics constraint component

Protected selfAny

selfAny: any = ...

source1

source1: any = null

The source1 of physics constraint component

source2

source2: any = null

The source2 of physics constraint component

Protected subscribeType

subscribeType: string = null

Subscribe type of abstract subscribe component

targetVelocity

targetVelocity: number = 0

The targetVelocity of physics constraint component

tween

tween: {} = null

Tween animation params

Type declaration

  • [key: string]: any

type

type: string = ''

The type of physics constraint 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.

windowExport

windowExport: string = null

Export this Object to window global variables

Accessors

needUpdate

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

    Parameters

    • value: boolean

    Returns void

Methods

addChanges

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

Protected applyChanges

  • applyChanges(changes: string[]): void

Protected callOnLoad

  • callOnLoad(): void

Protected checkChanges

  • checkChanges(changes: SimpleChanges): SimpleChanges

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

Protected getChanges

  • getChanges(): string[]

getConstraint

getId

  • getId(): string

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

resetTween

  • resetTween(): void

runSubscribeNext

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

Protected setObject

  • setObject(obj: any): void

setParent

  • setParent(parent: any): boolean

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

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