jolt_physics library
Reusable Flutter API for creating and simulating Jolt Physics rigid bodies.
Import this library to access PhysicsWorld, collider shapes, rigid body settings, transforms, quaternions, and vectors from a single entrypoint.
Classes
- BodyId
- Stable identifier for a native Jolt body inside one physics world.
- BoxShape
- An axis-aligned box collider described by half-extents.
- CapsuleShape
- A capsule collider aligned with the Y axis.
- ColliderShape
- Base class for collision geometry attached to a rigid body.
- CompoundShape
- A collider built from multiple locally positioned child shapes.
- CylinderShape
- A cylinder collider aligned with the Y axis.
- PhysicsQueries
- Read-only spatial queries performed against a physics world.
- PhysicsTransform
- The position and rotation of a rigid body in the physics world.
- PhysicsWorld
- A simulation world backed by Jolt Physics on Android.
- PositionedShape
- A collider shape placed in a local node coordinate system.
- Quaternion
- A quaternion used to represent a three-dimensional rotation.
- Ray
- A finite world-space ray used for physics queries.
- RayCastHit
- Closest rigid-body intersection returned by a ray cast.
- RigidBody
- Handle for a body owned by a PhysicsWorld.
- RigidBodySettings
- Describes a rigid body before it is inserted into a PhysicsWorld.
- RigidBodySnapshot
- Immutable debug view of a live rigid body.
- SphereShape
- A spherical collider.
- Vector3
- A three-dimensional vector expressed in Jolt world units.
Enums
- MotionType
- Defines how Jolt moves and simulates a rigid body.
Functions
-
createPhysicsWorld(
) → PhysicsWorld - Creates a physics world.