| Modifier and Type | Method and Description |
|---|---|
java.util.List<PhysicsSweepTestResult> |
PhysicsSpace.sweepTest(CollisionShape shape,
com.jme3.math.Transform start,
com.jme3.math.Transform end)
Perform a sweep-collision test and return the results as a new list.
|
java.util.List<PhysicsSweepTestResult> |
PhysicsSpace.sweepTest(CollisionShape shape,
com.jme3.math.Transform start,
com.jme3.math.Transform end,
java.util.List<PhysicsSweepTestResult> results)
Perform a sweep-collision test and store the results in an existing list.
|
java.util.List<PhysicsSweepTestResult> |
PhysicsSpace.sweepTest(CollisionShape shape,
com.jme3.math.Transform start,
com.jme3.math.Transform end,
java.util.List<PhysicsSweepTestResult> results,
float allowedCcdPenetration)
Perform a sweep-collision test and store the results in an existing list.
|
| Modifier and Type | Field and Description |
|---|---|
protected CollisionShape |
PhysicsCollisionObject.collisionShape
shape associated with this object (not null)
|
| Modifier and Type | Method and Description |
|---|---|
CollisionShape |
PhysicsCollisionObject.getCollisionShape()
Access the shape of this physics object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PhysicsCollisionObject.setCollisionShape(CollisionShape collisionShape)
Apply the specified CollisionShape to this object.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BoxCollisionShape
A rectangular-solid collision shape based on Bullet's btBoxShape.
|
class |
CapsuleCollisionShape
A capsule collision shape based on Bullet's btCapsuleShapeX, btCapsuleShape,
or btCapsuleShapeZ.
|
class |
CompoundCollisionShape
A collision shape formed by combining convex child shapes, based on Bullet's
btCompoundShape.
|
class |
ConeCollisionShape
A conical collision shape based on Bullet's btConeShapeX, btConeShape, or
btConeShapeZ.
|
class |
CylinderCollisionShape
A cylindrical collision shape based on Bullet's btCylinderShapeX, new
btCylinderShape, or btCylinderShapeZ.
|
class |
GImpactCollisionShape
A mesh collision shape based on Bullet's btGImpactMeshShape.
|
class |
HeightfieldCollisionShape
A terrain collision shape based on Bullet's btHeightfieldTerrainShape.
|
class |
HullCollisionShape
A convex hull collision shape based on Bullet's btConvexHullShape.
|
class |
MeshCollisionShape
A mesh collision shape based on Bullet's btBvhTriangleMeshShape.
|
class |
PlaneCollisionShape
A planar collision shape based on Bullet's btStaticPlaneShape.
|
class |
SimplexCollisionShape
A simple point, line-segment, triangle, or tetrahedron collision shape based
on Bullet's btBU_Simplex1to4.
|
class |
SphereCollisionShape
A spherical collision shape based on Bullet's btSphereShape.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CompoundCollisionShape.addChildShape(CollisionShape shape,
com.jme3.math.Vector3f location)
Add a child shape with the specified local translation.
|
void |
CompoundCollisionShape.addChildShape(CollisionShape shape,
com.jme3.math.Vector3f location,
com.jme3.math.Matrix3f rotation)
Add a child shape with the specified local translation and orientation.
|
void |
CompoundCollisionShape.removeChildShape(CollisionShape shape)
Remove a child from this 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 |
BulletCharacterDebugControl.myShape
shape for which geom was generated
|
protected CollisionShape |
BulletRigidBodyDebugControl.myShape
shape for which geom was generated (not null)
|
protected CollisionShape |
BulletGhostObjectDebugControl.myShape
shape for which geom was generated (not null)
|
| Modifier and Type | Method and Description |
|---|---|
void |
PhysicsRigidBody.setCollisionShape(CollisionShape collisionShape)
Apply the specified CollisionShape to this body.
|
void |
PhysicsCharacter.setCollisionShape(CollisionShape collisionShape)
Apply the specified CollisionShape to this character.
|
void |
PhysicsGhostObject.setCollisionShape(CollisionShape collisionShape)
Apply the specified CollisionShape to this object.
|
| Constructor and Description |
|---|
PhysicsCharacter(CollisionShape shape,
float stepHeight)
Instantiate a character with the specified collision shape and step
height.
|
PhysicsGhostObject(CollisionShape shape)
Instantiate an object with the specified collision shape.
|
PhysicsGhostObject(com.jme3.scene.Spatial child,
CollisionShape shape) |
PhysicsRigidBody(CollisionShape shape)
Instantiate a dynamic body with mass=1 and the specified collision shape.
|
PhysicsRigidBody(CollisionShape shape,
float mass)
Instantiate a body with the specified collision shape and mass.
|
PhysicsVehicle(CollisionShape shape)
Instantiate a vehicle with the specified collision shape and mass=1.
|
PhysicsVehicle(CollisionShape shape,
float mass)
Instantiate a vehicle with the specified collision shape and 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)
Create a mesh for visualizing the specified shape.
|
static com.jme3.scene.Spatial |
DebugShapeFactory.getDebugShape(CollisionShape collisionShape)
Create a debug spatial from the specified collision shape.
|