@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
21 lines (20 loc) • 812 B
TypeScript
import type { World } from '@dimforge/rapier3d-compat';
import { Object3D } from 'three';
import { CorePlayerPhysics } from './CorePlayerPhysics';
import { PhysicsLib } from '../CorePhysics';
import { PolyScene } from '../../../engine/scene/PolyScene';
export declare enum PhysicsPlayerType {
CHARACTER_CONTROLLER = "characterController",
TORQUE = "torque"
}
export declare function clearPhysicsPlayers(): void;
interface CreateOrFindPhysicsPlayerOptions {
scene: PolyScene;
object: Object3D;
PhysicsLib: PhysicsLib;
world: World;
worldObject: Object3D;
}
export declare function createOrFindPhysicsPlayer(options: CreateOrFindPhysicsPlayerOptions): CorePlayerPhysics | undefined;
export declare function findPhysicsPlayer(object: Object3D): CorePlayerPhysics | undefined;
export {};