index.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import {oimo} from './OimoPhysics.js';
  2. // dynamics
  3. export const World = oimo.dynamics.World;
  4. export const RigidBodyType = oimo.dynamics.rigidbody.RigidBodyType;
  5. export const RigidBodyConfig = oimo.dynamics.rigidbody.RigidBodyConfig;
  6. export const ShapeConfig = oimo.dynamics.rigidbody.ShapeConfig;
  7. export const RigidBody = oimo.dynamics.rigidbody.RigidBody;
  8. export const Shape = oimo.dynamics.rigidbody.Shape;
  9. export const SphericalJoint = oimo.dynamics.constraint.joint.SphericalJoint;
  10. export const RevoluteJointConfig = oimo.dynamics.constraint.joint.RevoluteJointConfig;
  11. export const UniversalJointConfig = oimo.dynamics.constraint.joint.UniversalJointConfig;
  12. export const CylindricalJoint = oimo.dynamics.constraint.joint.CylindricalJoint;
  13. export const PrismaticJoint = oimo.dynamics.constraint.joint.PrismaticJoint;
  14. export const PrismaticJointConfig = oimo.dynamics.constraint.joint.PrismaticJointConfig;
  15. export const RevoluteJoint = oimo.dynamics.constraint.joint.RevoluteJoint;
  16. export const RagdollJoint = oimo.dynamics.constraint.joint.RagdollJoint;
  17. export const CylindricalJointConfig = oimo.dynamics.constraint.joint.CylindricalJointConfig;
  18. export const SphericalJointConfig = oimo.dynamics.constraint.joint.SphericalJointConfig;
  19. export const RagdollJointConfig = oimo.dynamics.constraint.joint.RagdollJointConfig;
  20. export const SpringDamper = oimo.dynamics.constraint.joint.SpringDamper;
  21. export const TranslationalLimitMotor = oimo.dynamics.constraint.joint.TranslationalLimitMotor;
  22. export const RotationalLimitMotor = oimo.dynamics.constraint.joint.RotationalLimitMotor;
  23. export const UniversalJoint = oimo.dynamics.constraint.joint.UniversalJoint;
  24. // common
  25. export const Vec3 = oimo.common.Vec3;
  26. export const Quat = oimo.common.Quat;
  27. export const Mat3 = oimo.common.Mat3;
  28. export const MathUtil = oimo.common.MathUtil;
  29. export const Transform = oimo.common.Transform;
  30. // collision
  31. export const OCapsuleGeometry = oimo.collision.geometry.CapsuleGeometry;
  32. export const OConvexHullGeometry = oimo.collision.geometry.ConvexHullGeometry;
  33. export const OBoxGeometry = oimo.collision.geometry.BoxGeometry;
  34. export const OSphereGeometry = oimo.collision.geometry.SphereGeometry;
  35. export const OCylinderGeometry = oimo.collision.geometry.CylinderGeometry;
  36. export const OConeGeometry = oimo.collision.geometry.ConeGeometry;
  37. export const OGeometry = oimo.collision.geometry.Geometry;
  38. // callback
  39. export const RayCastClosest = oimo.dynamics.callback.RayCastClosest;