Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NgxRigidbodyComponent

The Rigidbody component.

See the ngx3js docs page for details.

see

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

angDamping

angDamping: number = null

The angDamping of rigidbody component

angStiffness

angStiffness: number = null

The angStiffness of rigidbody component

angularVelocityX

angularVelocityX: number = null

The angularVelocityX of rigidbody component

angularVelocityY

angularVelocityY: number = null

The angularVelocityY of rigidbody component

angularVelocityZ

angularVelocityZ: number = null

The angularVelocityZ of rigidbody component

breakable

breakable: boolean = null

The breakable of rigidbody component

collisions

collisions: string | number = null

The collisions of rigidbody component

damping

damping: number = null

The damping of rigidbody component

debug

debug: boolean = false

Debug this Object

depth

depth: number = null

The depth of rigidbody component

enabled

enabled: boolean = true

Enabled or Not

friction

friction: number = null

The friction of rigidbody component

height

height: number = null

The height of rigidbody component

Protected id

id: string = ''

The Id of abstract subscribe component

inertia

inertia: number = null

The inertia of rigidbody component

inertiaX

inertiaX: number = null

The inertiaX of rigidbody component

inertiaY

inertiaY: number = null

The inertiaY of rigidbody component

inertiaZ

inertiaZ: number = null

The inertiaZ of rigidbody component

isSoftBody

isSoftBody: boolean = false

The isSoftBody of rigidbody component

linDamping

linDamping: number = null

The linDamping of rigidbody component

linStiffness

linStiffness: number = null

The linStiffness of rigidbody component

margin

margin: number = null

The margin of rigidbody component

mass

mass: number = null

The mass of rigidbody component

onDestory

onDestory: EventEmitter<NgxRigidbodyComponent> = ...

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

onLoad

onLoad: EventEmitter<NgxRigidbodyComponent> = ...

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

piterations

piterations: number = null

The piterations of rigidbody component

pressure

pressure: number = null

The pressure of rigidbody component

radius

radius: number = null

The radius of rigidbody component

randomizeConstraints

randomizeConstraints: boolean = true

The randomizeConstraints of rigidbody component

restitution

restitution: number = null

The restitution of rigidbody component

rollingFriction

rollingFriction: number = null

The rollingFriction of rigidbody component

Protected selfAny

selfAny: any = ...

stiffness

stiffness: number = null

The stiffness of rigidbody component

Protected subscribeType

subscribeType: string = null

Subscribe type of abstract subscribe component

tween

tween: {} = null

Tween animation params

Type declaration

  • [key: string]: any

type

type: string = 'auto'

The type of rigidbody component

Notice - case insensitive.

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.

velocityType

velocityType: string = null

The velocityType of rigidbody component

Notice - case insensitive.

velocityX

velocityX: number = null

The velocityX of rigidbody component

velocityY

velocityY: number = null

The velocityY of rigidbody component

velocityZ

velocityZ: number = null

The velocityZ of rigidbody component

viterations

viterations: number = null

The viterations of rigidbody component

width

width: number = null

The width of rigidbody component

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

applyForce

  • applyForce(x: number, y: number, z: number, type?: string, relX?: number, relY?: number, relZ?: number, index?: number): void
  • Applys force

    Parameters

    • x: number
    • y: number
    • z: number
    • type: string = 'force'
    • relX: number = 0
    • relY: number = 0
    • relZ: number = 0
    • index: number = null

    Returns void

applyTorque

  • applyTorque(x: number, y: number, z: number, type?: string, index?: number): void

Protected callOnLoad

  • callOnLoad(): void

Protected checkChanges

  • checkChanges(changes: SimpleChanges): SimpleChanges

Protected clearChanges

  • clearChanges(): void

clearForces

  • clearForces(index?: number): 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[]

getFactor

getId

  • getId(): string

getMotionState

getObject

  • getObject<T>(): T

getRigidBody

getSubscribe

  • getSubscribe(): Observable<string[]>

Protected getTimeout

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

getUserData

  • getUserData(): {}

getVelocity

  • getVelocity(type?: string, index?: number): I3JS.Vector3

getWorldInfo

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

resetTween

  • resetTween(): void

runSubscribeNext

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

setFactor

  • setFactor(x: number, y: number, z: number, type?: string, index?: number): void

setMotionState

setMotionStatePosition

  • setMotionStatePosition(x?: number, y?: number, z?: number, rx?: number, ry?: number, rz?: number, index?: number): void
  • Sets motion state position

    Parameters

    • x: number = null
    • y: number = null
    • z: number = null
    • rx: number = null
    • ry: number = null
    • rz: number = null
    • index: number = null

    Returns void

setMotionStateRotation

  • setMotionStateRotation(x: number, y: number, z: number, index?: number): void

Protected setObject

  • setObject(obj: any): void

setParent

setPhysics

setPosition

  • setPosition(x: number, y: number, z: number, index?: number): void

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

setVelocity

  • setVelocity(x: number, y: number, z: number, type?: string, index?: number): 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