import * as CANNON from "cannon-es"; export interface PhysicsConstructorOption { gravity?: CANNON.Vec3; frictionGravity?: CANNON.Vec3; allowSleep?: boolean; broadphase?: CANNON.Broadphase; solver?: CANNON.Solver; quatNormalizeFast?: boolean; quatNormalizeSkip?: number; } export interface PhysicsCustomBodyOption { collisionFilterGroup?: number; collisionFilterMask?: number; collisionResponse?: boolean; velocity?: CANNON.Vec3; mass?: number; material?: CANNON.Material; linearDamping?: number; type?: CANNON.BodyType; allowSleep?: boolean; sleepSpeedLimit?: number; sleepTimeLimit?: number; angularVelocity?: CANNON.Vec3; fixedRotation?: boolean; angularDamping?: number; linearFactor?: CANNON.Vec3; angularFactor?: CANNON.Vec3; isTrigger?: boolean; } export interface PhysicsBodyOption extends PhysicsCustomBodyOption { shape: CANNON.Shape; }