Skip to content

i-physics-world-3d.component overview


Table of contents


utils

IPhysicsWorld3dComponent (interface)

Signature

export interface IPhysicsWorld3dComponent<PTypeDoc extends PhysicsTypeDocRepo3D = PhysicsTypeDocRepo3D>
  extends IPhysicsWorldComponent<Point3, Point4, PTypeDoc> {
  readonly loader: PTypeDoc['loader']

  /** event emitter, emits newly added physics components */
  readonly added$: Subject<
    PTypeDoc['trigger'] | PTypeDoc['rigidBody'] | PTypeDoc['raycastVehicle'] | PTypeDoc['characterController'] | any
  >
  /** event emitter, emits just removed physics components */
  readonly removed$: Subject<
    PTypeDoc['trigger'] | PTypeDoc['rigidBody'] | PTypeDoc['raycastVehicle'] | PTypeDoc['characterController'] | any
  >
  /** list of currently added to world physics components */
  readonly children: (
    | PTypeDoc['trigger']
    | PTypeDoc['rigidBody']
    | PTypeDoc['raycastVehicle']
    | PTypeDoc['characterController']
    | any
  )[]
}