Package com.github.stephengold.joltjni
package com.github.stephengold.joltjni
Java equivalents for Jolt Physics classes and structs.
-
ClassDescriptionAn axis-aligned box.Add convex radius to a support function.Specify an additional constraint for use in a ragdoll.Collect all results from a narrow-phase ray-cast query.Collect all results from a narrow-phase shape-cast query.Collect all results from a narrow-phase point query.Collect all results from a broadphase shape collision.Collect all results from a narrow-phase shape collision.Collect all results from a broad-phase ray-cast query.Collect all leaf shapes from a transformed shape or narrow-phase query.Collect one result from a narrow-phase ray-cast query.Collect one result from a narrow-phase shape-cast query.Collect one result from a narrow-phase collide-shape query.An object with mass, position, and shape that can be added to a
PhysicsSystem
.Receive events when a body is activated or deactivated.Settings used to create a rigid body.Determine which bodies are candidates for a collision test.A fixed-length array of body IDs.A variable-length vector (array) of body IDs.An interface to aPhysicsSystem
that's used to create, add, modify, query, remove, and delete bodies.An interface to aPhysicsSystem
that is aware of body locking.ABodyLockInterface
that actually locks bodies.ABodyLockInterface
that doesn't automatically lock bodies.Lock a body for read-only access.Lock a body for read-write access.A container for bodies.Render settings for debug visualization.A variable-length vector (array) of bodies.AShape
to represent centered, axis-aligned rectangular solids.Settings used to construct aBoxShape
.Coarse collision-detection phase to quickly eliminate body pairs that cannot collide.Unoptimized reference implementation ofBroadPhase
.Information about a broad-phase cast hit.A collision filter for broad-phase layers.Map object layers to broad-phase layers.Map object layers to broad-phase layers using a lookup table.Fast quad-tree broad phase that is multi-threading aware.Interface for crude collision detection against the bounding boxes in aPhysicsSystem
.AShape
to represent a right circular cylinder capped by 2 hemispheres.Settings used to construct aCapsuleShape
.Collect results from a narrow-phase ray-cast query.Collect results from a narrow-phase shape-cast query.A character implemented using a kinematic rigid body.Base class to represent a player navigating aPhysicsSystem
.Settings used to create aCharacterBase
.Receive callbacks when a virtual character collides with something.Properties of a character contact that can be overridden during certainCharacterContactListener
callbacks.A counted reference to aCharacter
.A counted reference to aConstCharacter
.Settings used to create aCharacter
.A counted reference to aCharacterSettings
object.A character implemented without a rigid body.A counted reference to aCharacterVirtual
.A counted reference to aConstCharacter
.Settings used to create aCharacterVirtual
.A counted reference to aCharacterVirtualSettings
object.An interface to determine which characters (if any) should collide with other characters.A simple implementation of the Character-versus-Character collision interface.An edge in aConvexHullBuilder
.A triangular face in aConvexHullBuilder
.Collect the closest result from a narrow-phase ray-cast query.Collect the closest result from a narrow-phase shape-cast query.Collect the closest result from a narrow-phase collide-shape query.Utilities to locate the closest point on a line segment, triangle or tetrahedron.Collect results from a narrow-phase collide-shape query.Information about a narrow-phase collision by a point.Configurable options for a shape-oriented collision query.Collect body IDs from a broad-phase collide-shape query.Collect results from a narrow-phase collide-shape query.Information about a narrow-phase collision by a shape.Configurable options for a collide-shape query.Utilities to collect collisions between shapes.Restrict which bodies can collide.An RGBA color with 8-bit components.Combine the restitution or friction of 2 bodies.AShape
composed from a union of simpler sub-shapes.Settings used to construct aCompoundShape
.ATwoBodyConstraint
that limits the swing of the twist axes to a cone and disables translation.Settings used to construct aConeConstraint
.The abstract base class for physics constraints.A counted reference to aConstraint
.A variable-length array of references to constraints.Settings used to construct aConstraint
.A counted reference to aConstraintSettings
object.Describe a contact between aCharacter
and a body or another character.A variable-length list (array) of character contacts.Receive collision-contact events.The contact surface between two bodies.Properties of a contact constraint that can be overridden during certainContactListener
callbacks.Construct a 3-D convex hull for specified points.AShape
to represent a convex hull defined by a collection of vertices.Settings used to construct aConvexHullShape
.A type ofShape
that inherently possesses the convex property.Settings used to construct aConvexShape
.A face in a narrow-phase collision result.A customizableBodyActivationListener
.A customizableCastRayCollector
.A customizableCastShapeCollector
.A customizableCharacterContactListener
.A customizableCollidePointCollector
.A customizableCollideShapeBodyCollector
.A customizableCollideShapeCollector
.A customizableContactListener
.A customizablePhysicsStepListener
.A customizableRayCastBodyCollector
.A customizableSoftBodyContactListener
.AShape
to represent a Y-axis right circular cylinder.Settings used to construct aCylinderShape
.Visualization for debugging purposes.ADebugRenderer
that records events for future playback.Add functionality to an existingShape
.Settings used to construct aDecoratedShape
.A collision filter for specific broad-phase layers.A collision filter for specific object layers.ATwoBodyConstraint
that holds 2 points at a fixed distance from each other.Settings used to construct aDistanceConstraint
.Join 2 soft-body vertices with a spring.AShape
that won't collide with anything and has zero volume.Settings used to construct anEmptyShape
.Settings for extended update of a virtual character.A triangular element on the surface of a soft body.ATwoBodyConstraint
that constrains rotation and translation, removing all 6 degrees of freedom.Settings used to construct aFixedConstraint
.A vector composed of 2 single-precision components, used as a storage class.A vector composed of 3 single-precision components, used as a storage class.ATwoBodyConstraint
that links the angular velocities of the bodies.Settings used to construct aGearConstraint
.An opaque buffer used bygetTrianglesStart()
andgetTrianglesNext()
.Test whether 2 collision groups can collide.A counted reference to aGroupFilter
.A group filter implemented using a table.A counted reference to aGroupFilterTable
object.AShape
to represent a surface defined by a matrix of heights.Constants used withHeightFieldShape
.Settings used to construct aHeightFieldShape
.ATwoBodyConstraint
that allows rotation only along one axis and disables translation, eliminating 5 degrees of freedom.Settings used to construct aHingeConstraint
.ABodyFilter
that ignores specific bodies.A triangle composed of three 32-bit mesh-vertex indices and a material index.A variable-length list (array) of indexed triangles.A triangle composed of three 32-bit mesh-vertex indices.Transform a skinned vertex from its bind pose to joint local space.A system for scheduling units of work for execution.A sample implementation ofJobSystem
without threads.A sample implementation ofJobSystem
using a pool of worker threads.AJobSystem
that provides barriers for synchronizing tasks.A particular joint in a skeleton.The local-space coordinate transform of an animation joint relative to its parent joint.Utility methods providing JNI access to Jolt Physics.An abstract class to represent a (native) Jolt Physics object.The mass and inertial tensor of aBody
.A 4x4 matrix composed of 16 single-precision elements, used to represent transformations of 3-D coordinates.A fixed-length array of single-precision coordinate transforms.AShape
to represent a surface defined by a collection of triangles.Settings used to construct aMeshShape
.Additional state for aBody
that moves.Control the acceleration and balance of a motorcycle, in addition to its acceleration and deceleration.Settings used to construct aMotorcycleController
.Settings used to construct a constraint motor.ACompoundShape
whose sub-shapes can be modified after the shape is constructed.Settings used to construct aMutableCompoundShape
.Protect shared data from being accessed simultaneously by multiple threads.Interface for precise collision detection against the bodies in aPhysicsSystem
.Gather and report narrow-phase performance statistics.A non-copyable Jolt Physics object.A collision filter for physics-object layers.Filter collisions between object layers.Filter collisions between object layers using a table.Utility class for reading Jolt Physics objects from files.Utility class for writing Jolt Physics objects to streams.Filter collisions between objects and broad-phase layers.Filter collisions between objects and broad-phase layers using a table.An implementation ofObjectVsBroadPhaseLayerFilter
that can be configured at runtime.An implementation ofObjectLayerPairFilter
that can be configured at runtime.Translate the center of mass of a child shape.Settings used to construct anOffsetCenterOfMassShape
.A 3-D box that has been rotated and translated.Settings used to generate a rigid body in aRagdoll
.ATwoBodyConstraint
that constrains motion to a path.The path for a path constraint.A path that follows a Hermite spline.A counted reference to aPathConstraintPath
.Settings used to construct aPathConstraint
.Surface properties of (part of) aShape
.A variable-length list (array) of material references.A counted reference to aPhysicsMaterial
.A counted reference to aConstPhysicsMaterial
.A straightforward implementation ofPhysicsMaterial
.The creation settings of a set of bodies.A counted reference to aPhysicsScene
.Either an error or aPhysicsSceneRef
.A component of aPhysicsSystem
, used to configure simulation parameters.Interface to receive a callback before every physics simulation step.Context passed to a physics-step listener.Perform simulation on a collection of physics objects.A math object used to represent a plane in 3-dimensional space.AShape
to represent a surface defined by a plane.Settings used to construct aPlaneShape
.ATwoBodyConstraint
that constrains the bodies on a common point, removing 3 degrees of freedom.Settings used to construct aPointConstraint
.ATwoBodyConstraint
that links the distances of the bodies from their respective world points.Settings used to construct aPulleyConstraint
.A math object used to represent rotations and orientations in 3-dimensional space, without risk of gimbal lock.ATwoBodyConstraint
that links the rotation of the first body to the linear motion of the 2nd body.Settings used to construct aRackAndPinionConstraint
.Runtime information to simulate a ragdoll composed of bodies connected by constraints.A counted reference to aRagdoll
.Either an error or aRagdollSettingsRef
.Settings and structure used to create aRagdoll
.A counted reference to aRagdollSettings
object.A ray cast with a single-precision start location.Collect results from a broad-phase raycast.Information about a broad-phase ray-cast hit.Raycast configuration options.A 4x4 matrix used to represent transformations of 3-D coordinates.Apply rotation followed by translation to an existingShape
to create a new shape.Settings used to construct aRotatedTranslatedShape
.A ray cast with anRVec3
start location.A shape cast with anRVec3
start location.A vector composed of 3 double-precision components, used to represent locations in 3-dimensional space.Apply scaling to an existingShape
.Settings used to construct aScaledShape
.Utilities to test a scaling vector for various properties.A physics object that can be serialized (saved) and de-serialized (restored).The abstract base class for collision shapes.Information about a narrow-phase ray cast hitting a shape.Configurable options for a shape-cast query.Determine which shapes are candidates for a collision test.A variable-length list (array) of shapes.A counted reference to aShape
.A counted reference to aConstShape
.Either an error or aShapeRefC
.Settings used to construct aShape
.A counted reference to aShapeSettings
.A counted reference to aConstShapeSettings
.ASharedMutexBase
with profiling and asserts.Manage read/write access to a resource that's shared by multiple threads.ATwoBodyConstraint
that can constrain all 6 degrees of freedom.Settings used to construct aSixDofConstraint
.A skeletal animation for skinning.A counted reference to aSkeletalAnimation
.A joint hierarchy for skeletal animation.Map poses between a low-detail skeleton and a high-detail one.A counted reference to aSkeletonMapper
.A skeleton with joint transforms specifying a pose.Render settings for debug visualization.A counted reference to aSkeleton
.A constraint that skins a soft-body vertex.A joint and its skin weight, for use in skinning calculations.ATwoBodyConstraint
that allows translation only along one axis and disables rotation, eliminating 5 degrees of freedom.Settings used to construct aSliderConstraint
.Receive collision-contact events from soft bodies.Properties of a contact constraint that can be overridden during certainSoftBodyContactListener
callbacks.Settings used to create a soft body.The vertices of a soft body that are colliding with other bodies.The motion properties of a soft body.AShape
used only with soft bodies.Properties of a soft body that may be shared among multiple bodies.A counted reference toSoftBodySharedSettings
.Run-time information for a single particle in a soft body.ABroadPhaseLayerFilter
that selects a specific layer.AnObjectLayerFilter
that selects a specific layer.3-D geometric description of a sphere.AShape
to represent centered spheres.Settings used to construct aSphereShape
.Settings used to construct a spring.Record the state of a physics system.Determine which parts of a physics system should be saved.Full implementation ofStateRecorder
, usingstringstream
.ACompoundShape
whose sub-shapes cannot be modified after the shape is constructed.Settings used to construct aStaticCompoundShape
.Statistics derived from aShape
.An abstract binary input stream.A wrapper around anstd::ifstream
.An abstract binary output stream.A wrapper around anstd::ofstream
.An element of a compound shape.Generate sub shape IDs by traversing the shape hierarchy.Identify a pair of colliding sub-shapes.Interface to the Gilbert–Johnson–Keerthi (GJK) distance algorithm.Buffer to hold aSupport
object.A supporting face in a convex shape.ATwoBodyConstraint
that only allows limited rotation.Settings used to construct aSwingTwistConstraint
.AShape
to represent the convex hull of 2 spheres centered on the axis.Settings used to construct aTaperedCylinderShape
.AShape
to represent a conical frustum.Settings used to construct aTaperedCylinderShape
.A memory allocator suitable for use byPhysicsSystem.update()
,CharacterVirtual.extendedUpdate()
, orCharacterVirtual.setShape()
.A last-in/first-out implementation ofTempAllocator
.A flexible implementation ofTempAllocator
.A malloc-based implementation ofTempAllocator
.Control the acceleration and deceleration of a vehicle with tracks.Settings used to construct aTrackedVehicleController
.A collision shape and a coordinate transform, typically extracted from aBody
orCharacter
.Collect results from a leaf-shape query.A non-indexed triangle with a material index.AShape
to represent a single triangle.Settings used to construct aTriangleShape
.A type ofConstraint
that joins 2 bodies.A counted reference to aTwoBodyConstraint
.Settings used to construct aTwoBodyConstraint
.A counted reference to aTwoBodyConstraintSettings
object.A vector composed of 4 unsigned integer components.A vector composed of 3 single-precision components, used to represent directions, extents, forces, impulses, offsets, scaling factors, torques, and velocities in 3-dimensional space.A vector composed of 4 single-precision components, used to construct matrices.A spring that connects two wheels and reduces a vehicle's rolling motion.Detect collisions between vehicle wheels and the environment.AVehicleCollisionTester
that casts a cylindrical shape.A counted reference to aVehicleCollisionTesterCastCylinder
.AVehicleCollisionTester
that casts a spherical shape.A counted reference to aVehicleCollisionTesterCastSphere
.AVehicleCollisionTester
that uses ray casts.A counted reference to aVehicleCollisionTesterRay
.A counted reference to aVehicleCollisionTester
.A specialConstraint
used in vehicle simulation.A counted reference to aVehicleConstraint
.Settings used to construct aVehicleConstraint
.Control the acceleration and deceleration of a vehicle.Settings used to construct aVehicleController
.A counted reference to aVehicleControllerSettings
object.Settings used to configure the differential of aWheeledVehicleController
.The engine of aVehicleController
.Settings used to configure the engine of aWheeledVehicleController
.The step listener associated with a vehicle.Settings to configure one track in aTrackedVehicleController
.The transmission (gearbox) of aVehicleController
.Settings used to configure the transmission (gearbox) of aWheeledVehicleController
.Attributes of a particle, for use during the creation of a soft body.A static array of 3-D vectors, backed by a fixed-length buffer.Per-vertex attributes used to configure the constraints in a soft body.A variable-length list of 3-D vectors, implemented using a directFloatBuffer
.Join 4 soft-body vertices into a tetrahedron with a preferred volume.A single wheel of a vehicle.Control the acceleration and deceleration of a wheeled vehicle.Settings used to construct aWheeledVehicleController
.Settings used to construct aWheel
.Settings used to construct aWheelTv
.A counted reference to aWheelSettingsTv
object.Settings used to construct aWheelWv
.A counted reference to aWheelSettingsWv
object.A single wheel of aTrackedVehicle
.A single wheel of aWheeledVehicle
.