Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Object3D<THREE.Object3D>
    • PhysicsObject3D

Index

Constructors

constructor

Properties

Protected _body

_body: RigidBody

Protected _children

_children: DisplayObject<Object3D>[] = []

Protected _contactEnabled

_contactEnabled: boolean = false

Protected _pivot

_pivot: Vector3 = ...

Protected _position

_position: BodyPosition

Protected _rotation

_rotation: BodyRotation

Protected _size

_size: Vector3 = ...

Protected _sub

_sub: Object3D

Protected _task

_task: Task

Protected _three

_three: Object3D

interactive

interactive: boolean = false

taskEnabledChildren

taskEnabledChildren: boolean = true

Accessors

body

  • get body(): RigidBody

children

depth

  • get depth(): number

height

  • get height(): number

parent

pivot

  • get pivot(): Vector3

position

rotation

scale

  • get scale(): Vector3

task

  • get task(): Task

taskEnabled

  • get taskEnabled(): boolean
  • set taskEnabled(value: boolean): void

three

  • get three(): T

width

  • get width(): number

x

  • get x(): any
  • set x(value: any): void

y

  • get y(): any
  • set y(value: any): void

z

  • get z(): any
  • set z(value: any): void

Methods

addChild

addCollisionGroup

  • addCollisionGroup(collisionGroup: number): void

addCollisionMask

  • addCollisionMask(collisionMask: number): void

cemit

  • Emit event with specifying a context.

    Parameters

    • type: string

      Event type to emit.

    • context: any

      Context to execute the callback.

    • Rest ...args: any[]

      Argument(s) in callback.

    Returns PhysicsObject3D

cemitAll

  • Emit all events with specifying a context.

    Parameters

    • context: any

      Context to execute the callback.

    • Rest ...args: any[]

      Argument(s) in callback.

    Returns PhysicsObject3D

clear

  • Remove events grouped event type.

    Parameters

    • Optional type: string

      Event type to remove. If it is empty, removes all events.

    Returns PhysicsObject3D

emit

  • Emit event.

    Parameters

    • type: string

      Event type to emit.

    • Rest ...args: any[]

      Argument(s) in callback.

    Returns PhysicsObject3D

emitAll

  • Emit all events.

    Parameters

    • Rest ...args: any[]

      Argument(s) in callback.

    Returns PhysicsObject3D

off

  • Unregister event.

    Parameters

    • type: string

      Event type.

    • callback: IEmitterDelegate

      Registered callback.

    Returns PhysicsObject3D

on

  • Register event.

    Parameters

    • type: string

      Event type.

    • callback: IEmitterDelegate

      Callback when the event fires.

    Returns PhysicsObject3D

once

  • Register one-time event.

    Parameters

    • type: string

      Event type.

    • callback: IEmitterDelegate

      Callback when the event fires.

    Returns PhysicsObject3D

removeChild

removeCollisionGroup

  • removeCollisionGroup(collisionGroup: number): void

removeCollisionMask

  • removeCollisionMask(collisionMask: number): void

setCollisionGroup

  • setCollisionGroup(collisionGroup: number): void

setCollisionMask

  • setCollisionMask(collisionMask: number): void

update

  • update(e: ITickerData, taskDisabledChildren: boolean): void

updateBoundingBox

  • updateBoundingBox(): void

updateTask

updateTransform

  • updateTransform(): void

Generated using TypeDoc