| Package | Description |
|---|---|
| com.jme3.bullet |
central classes of the physics system
|
| com.jme3.bullet.collision |
physics-based collision detection, including ray tests and sweep tests
|
| com.jme3.bullet.collision.shapes |
collision shapes: standard shapes used in physics-based collision detection
|
| com.jme3.bullet.collision.shapes.infos |
supplemental classes for physics-based collision detection
|
| com.jme3.bullet.control |
physics controls: scene-graph controls for linking physics collision objects
to spatials
|
| com.jme3.bullet.debug |
visualize physics objects for debugging
|
| com.jme3.bullet.objects |
physics collision objects, including vehicles
|
| com.jme3.bullet.util |
utility classes related to Bullet physics
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<PhysicsSweepTestResult> |
PhysicsSpace.sweepTest(CollisionShape shape,
com.jme3.math.Transform start,
com.jme3.math.Transform end)
Performs a sweep collision test and returns the results as a list of PhysicsSweepTestResults
You have to use different Transforms for start and end (at least distance greater than 0.4f). |
java.util.List<PhysicsSweepTestResult> |
PhysicsSpace.sweepTest(CollisionShape shape,
com.jme3.math.Transform start,
com.jme3.math.Transform end,
java.util.List<PhysicsSweepTestResult> results)
Performs a sweep collision test and returns the results as a list of PhysicsSweepTestResults
You have to use different Transforms for start and end (at least distance greater than 0.4f). |
| Modifier and Type | Field and Description |
|---|---|
protected CollisionShape |
PhysicsCollisionObject.collisionShape |
| Modifier and Type | Method and Description |
|---|---|
CollisionShape |
PhysicsCollisionObject.getCollisionShape() |
| Modifier and Type | Method and Description |
|---|---|
void |
PhysicsCollisionObject.setCollisionShape(CollisionShape collisionShape)
Sets a CollisionShape to this physics object, note that the object should
not be in the physics space when adding a new collision shape as it is rebuilt
on the physics side.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BoxCollisionShape
Basic box collision shape
|
class |
CapsuleCollisionShape
Basic capsule collision shape
|
class |
CompoundCollisionShape
A CompoundCollisionShape allows combining multiple base shapes
to generate a more sophisticated shape.
|
class |
ConeCollisionShape
Cone collision shape represents a 3D cone with a radius, height, and axis (X, Y or Z).
|
class |
CylinderCollisionShape
Basic cylinder collision shape
|
class |
GImpactCollisionShape
Basic mesh collision shape
|
class |
HeightfieldCollisionShape
Uses Bullet Physics Heightfield terrain collision system.
|
class |
HullCollisionShape |
class |
MeshCollisionShape
Basic mesh collision shape
|
class |
PlaneCollisionShape |
class |
SimplexCollisionShape
A simple point, line, triangle or quad collisionShape based on one to four points-
|
class |
SphereCollisionShape
Basic sphere collision shape
|
| Modifier and Type | Method and Description |
|---|---|
void |
CompoundCollisionShape.addChildShape(CollisionShape shape,
com.jme3.math.Vector3f location)
adds a child shape at the given local translation
|
void |
CompoundCollisionShape.addChildShape(CollisionShape shape,
com.jme3.math.Vector3f location,
com.jme3.math.Matrix3f rotation)
adds a child shape at the given local translation
|
void |
CompoundCollisionShape.removeChildShape(CollisionShape shape)
removes a child shape
|
| Modifier and Type | Field and Description |
|---|---|
CollisionShape |
ChildCollisionShape.shape
base shape (not null, not a compound shape)
|
| Constructor and Description |
|---|
ChildCollisionShape(com.jme3.math.Vector3f location,
com.jme3.math.Matrix3f rotation,
CollisionShape shape)
Instantiate a child shape for use in a compound shape.
|
| Modifier and Type | Method and Description |
|---|---|
protected CollisionShape |
BetterCharacterControl.getShape()
Create a collision shape based on the scale parameter.
|
| Constructor and Description |
|---|
CharacterControl(CollisionShape shape,
float stepHeight) |
GhostControl(CollisionShape shape)
Instantiate an enabled control with the specified shape.
|
RigidBodyControl(CollisionShape shape)
Instantiate an enabled control with mass=1 and the specified collision
shape.
|
RigidBodyControl(CollisionShape shape,
float mass)
Instantiate an enabled control with the specified collision shape and
mass.
|
VehicleControl(CollisionShape shape)
Instantiate an enabled control with mass=1 and the specified collision
shape.
|
VehicleControl(CollisionShape shape,
float mass)
Instantiate an enabled with the specified collision shape and mass.
|
| Modifier and Type | Field and Description |
|---|---|
protected CollisionShape |
BulletRigidBodyDebugControl.myShape
shape for which geom was generated (not null)
|
protected CollisionShape |
BulletGhostObjectDebugControl.myShape
shape for which geom was generated (not null)
|
protected CollisionShape |
BulletCharacterDebugControl.myShape
shape for which geom was generated
|
| Modifier and Type | Method and Description |
|---|---|
void |
PhysicsRigidBody.setCollisionShape(CollisionShape collisionShape) |
void |
PhysicsCharacter.setCollisionShape(CollisionShape collisionShape) |
void |
PhysicsGhostObject.setCollisionShape(CollisionShape collisionShape) |
| Constructor and Description |
|---|
PhysicsCharacter(CollisionShape shape,
float stepHeight) |
PhysicsGhostObject(CollisionShape shape) |
PhysicsGhostObject(com.jme3.scene.Spatial child,
CollisionShape shape) |
PhysicsRigidBody(CollisionShape shape)
Creates a new PhysicsRigidBody with the supplied collision shape
|
PhysicsRigidBody(CollisionShape shape,
float mass) |
PhysicsVehicle(CollisionShape shape) |
PhysicsVehicle(CollisionShape shape,
float mass) |
| Modifier and Type | Method and Description |
|---|---|
static CollisionShape |
CollisionShapeFactory.createBoxShape(com.jme3.scene.Spatial spatial)
Create a box shape for the given Spatial.
|
static CollisionShape |
CollisionShapeFactory.createDynamicMeshShape(com.jme3.scene.Spatial spatial)
Create a hull shape for the given Spatial.
|
static CollisionShape |
CollisionShapeFactory.createMeshShape(com.jme3.scene.Spatial spatial)
Create a mesh shape for the given Spatial.
|
| Modifier and Type | Method and Description |
|---|---|
static com.jme3.scene.Mesh |
DebugShapeFactory.getDebugMesh(CollisionShape shape) |
static com.jme3.scene.Spatial |
DebugShapeFactory.getDebugShape(CollisionShape collisionShape)
Creates a debug shape from the given collision shape.
|