import { Body } from "three-physx"; import { Component } from '../../ecs/classes/Component'; import { Types } from '../../ecs/types/Types'; /** * @author HydraFire */ export class ColliderComponent extends Component { body: Body type: string mass: number position: any quaternion: any scale: any mesh: any vertices: any indices: any } ColliderComponent._schema = { body: { type: Types.Ref, default: null }, type: { type: Types.String, default: 'box' }, mass: { type: Types.Number, default: 0 }, position: { type: Types.Ref, default: null }, quaternion: { type: Types.Ref, default: {x: 0, y: 0, z: 0, w: 0}}, scale: { type: Types.Ref, default: {x: 1, y: 1, z: 1}}, mesh: { type: Types.Ref, default: null}, vertices: { type: Types.Ref, default: null}, indices: { type: Types.Ref, default: null} };