UNPKG

three-game-engine

Version:

Simple light-weight game engine using three.js, three-mesh-ui and rapier

13 lines (12 loc) 476 B
import Component from "../Component"; import RAPIER from "@dimforge/rapier3d-compat"; declare class RigidBodyComponent extends Component { rapierRigidBody: RAPIER.RigidBody; constructor(gameObject: any, jsonData: any); load(): void; _createRigidBodyDesc(type: any): RAPIER.RigidBodyDesc; _createColliderDesc(colliderData: any): RAPIER.ColliderDesc; beforeRender(): void; getRapierRigidBody(): RAPIER.RigidBody; } export default RigidBodyComponent;