8.0.0 • Published 6 months ago

@houseki-engine/physics v8.0.0

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
6 months ago

@houseki-engine/physics

Physics using Rapier.

Rigidbody

A rigidbody is a component that allows an entity to be affected by physics. It can be attached to an entity in the scene that has a Transform component.

  • StaticBody - a body that does not move
  • DynamicBody - a body that is affected by forces, such as gravity
  • KinematicBody - a velocity-based body that is not affected by forces

TargetTransform

Optionally, a TargetTransform component can be attached to a rigidbody. This will automatically smooth the rigidbody's position and rotation between physics steps. Any changes to the rigidbody's position or rotation should be done through the TargetTransform component.

Collider

One or more colliders can be attached to a rigidbody. For a single collider, the collider component can be attached directly to the rigidbody entity. For multiple colliders, each collider should be attached to a separate entity, and use the Parent component to attach to the rigidbody entity.

  • BoxCollider - a box collider
  • CapsuleCollider - a capsule collider
  • CylinderCollider - a cylinder collider
  • HullCollider - a convex hull collider
  • MeshCollider - a mesh collider
  • SphereCollider - a sphere collider
8.0.0

6 months ago

7.0.0

8 months ago

6.1.1

8 months ago

6.1.0

8 months ago

6.0.1

8 months ago

6.0.0

8 months ago

5.0.1

9 months ago