@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.
47 lines (40 loc) • 854 B
text/typescript
export enum PhysicsMaterialCombine {
Average = 0,
Multiply = 1,
Minimum = 2,
Maximum = 3,
}
/**
* Properties for physics simulation, like friction or bounciness.
*/
export type PhysicsMaterial = {
bounceCombine?: PhysicsMaterialCombine;
bounciness?: number;
frictionCombine?: PhysicsMaterialCombine;
dynamicFriction?: number;
/**@deprecated not used */
staticFriction?:number;
}
export enum CollisionDetectionMode {
Discrete = 0,
Continuous = 1,
}
export enum RigidbodyConstraints {
None = 0,
FreezePositionX = 2,
FreezePositionY = 4,
FreezePositionZ = 8,
FreezePosition = 14,
FreezeRotationX = 16,
FreezeRotationY = 32,
FreezeRotationZ = 64,
FreezeRotation = 112,
FreezeAll = 126,
}
export enum Axes {
None = 0,
X = 2,
Y = 4,
Z = 8,
All = ~0,
}