Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AmmoPhysicsContext

Hierarchy

  • AmmoPhysicsContext

Index

Properties

object3Ds: Record<string, Object3D>
physicsPerformanceInfoRef: MutableRefObject<PhysicsPerformanceInfo>

Methods

  • activateBody(uuid: string): any
  • Parameters

    • uuid: string

    Returns any

  • addSoftBody(uuid: string, mesh: Object3D, options?: SoftBodyConfig): any
  • Parameters

    • uuid: string
    • mesh: Object3D
    • Optional options: SoftBodyConfig

    Returns any

  • bodyApplyForce(uuid: string, force: Vector3, relativeOffset?: Vector3): any
  • Parameters

    • uuid: string
    • force: Vector3
    • Optional relativeOffset: Vector3

    Returns any

  • bodyApplyImpulse(uuid: string, impulse: Vector3, relativeOffset?: Vector3): any
  • Parameters

    • uuid: string
    • impulse: Vector3
    • Optional relativeOffset: Vector3

    Returns any

  • bodySetLinearVelocity(uuid: string, velocity: Vector3): any
  • Parameters

    • uuid: string
    • velocity: Vector3

    Returns any

  • bodySetMotionState(uuid: string, position?: Vector3, rotation?: Quaternion): any
  • Parameters

    • uuid: string
    • Optional position: Vector3
    • Optional rotation: Quaternion

    Returns any

  • bodySetShapesOffset(uuid: string, offset: Vector3): any
  • Parameters

    • uuid: string
    • offset: Vector3

    Returns any

  • enableDebug(enable: boolean, debugSharedArrayBuffer: SharedArrayBuffer): any
  • Parameters

    • enable: boolean
    • debugSharedArrayBuffer: SharedArrayBuffer

    Returns any

  • rayTest(options: RaycastOptions): Promise<RaycastHit[]>
  • Parameters

    • options: RaycastOptions

    Returns Promise<RaycastHit[]>

  • removeConstraint(constraintId: string): any
  • Parameters

    • constraintId: string

    Returns any

  • removeRigidBody(uuid: string): any
  • Parameters

    • uuid: string

    Returns any

  • removeSoftBody(uuid: string): any
  • Parameters

    • uuid: string

    Returns any

  • resetDynamicBody(uuid: string): any
  • Parameters

    • uuid: string

    Returns any

  • Parameters

    Returns any

  • Parameters

    Returns any

Generated using TypeDoc