UNPKG

mylingo3d

Version:

Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor

56 lines 1.73 kB
import cubeShape from "../display/core/PhysicsObjectManager/cannon/shapes/cubeShape"; import { simpleObjectManagerDefaults, simpleObjectManagerSchema } from "./ISimpleObjectManager"; import { hideSchema } from "./utils/nonEditorSchemaSet"; import NullableDefault from "./utils/NullableDefault"; export const physicsObjectManagerSchema = { ...simpleObjectManagerSchema, maxAngularVelocityX: Number, maxAngularVelocityY: Number, maxAngularVelocityZ: Number, maxVelocityX: Number, maxVelocityY: Number, maxVelocityZ: Number, velocity: Object, gravity: Boolean, noTumble: Boolean, slippery: Boolean, mass: Number, physicsGroup: Number, ignorePhysicsGroups: Array, physics: [String, Boolean], physicsShape: Function }; hideSchema([ "maxAngularVelocityX", "maxAngularVelocityY", "maxAngularVelocityZ", "maxVelocityX", "maxVelocityY", "maxVelocityZ", "velocity", "noTumble", "slippery", "mass", "physicsGroup", "ignorePhysicsGroups", "physicsShape" ]); export const physicsObjectManagerDefaults = { ...simpleObjectManagerDefaults, maxAngularVelocityX: Infinity, maxAngularVelocityY: Infinity, maxAngularVelocityZ: Infinity, maxVelocityX: Infinity, maxVelocityY: Infinity, maxVelocityZ: Infinity, velocity: { x: 0, y: 0, z: 0 }, gravity: true, noTumble: new NullableDefault(false), slippery: new NullableDefault(false), mass: new NullableDefault(1), physicsGroup: undefined, ignorePhysicsGroups: undefined, physics: false, physicsShape: cubeShape }; //# sourceMappingURL=IPhysicsObjectManager.js.map