Uses of Class
com.jme3.bullet.collision.shapes.CollisionShape
Packages that use CollisionShape
Package
Description
central classes of the physics system
physics-based collision detection, including ray tests and sweep tests
collision shapes: standard shapes used in physics-based collision detection
supplemental classes for physics-based collision detection
physics controls: scene-graph controls for linking physics collision objects
to spatials
visualize physics objects for debugging
physics collision objects, including vehicles
utility classes related to Bullet physics
-
Uses of CollisionShape in com.jme3.bullet
Methods in com.jme3.bullet with parameters of type CollisionShapeModifier and TypeMethodDescriptionPhysicsSpace.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).PhysicsSpace.sweepTest(CollisionShape shape, com.jme3.math.Transform start, com.jme3.math.Transform end, 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). -
Uses of CollisionShape in com.jme3.bullet.collision
Fields in com.jme3.bullet.collision declared as CollisionShapeMethods in com.jme3.bullet.collision that return CollisionShapeMethods in com.jme3.bullet.collision with parameters of type CollisionShapeModifier and TypeMethodDescriptionvoidPhysicsCollisionObject.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. -
Uses of CollisionShape in com.jme3.bullet.collision.shapes
Subclasses of CollisionShape in com.jme3.bullet.collision.shapesModifier and TypeClassDescriptionclassBasic box collision shapeclassBasic capsule collision shapeclassA CompoundCollisionShape allows combining multiple base shapes to generate a more sophisticated shape.classCone collision shape represents a 3D cone with a radius, height, and axis (X, Y or Z).classBasic cylinder collision shapeclassBasic mesh collision shapeclassUses Bullet Physics Heightfield terrain collision system.classclassBasic mesh collision shapeclassclassA simple point, line, triangle or quad collisionShape based on one to four points-classBasic sphere collision shapeMethods in com.jme3.bullet.collision.shapes with parameters of type CollisionShapeModifier and TypeMethodDescriptionvoidCompoundCollisionShape.addChildShape(CollisionShape shape, com.jme3.math.Vector3f location) adds a child shape at the given local translationvoidCompoundCollisionShape.addChildShape(CollisionShape shape, com.jme3.math.Vector3f location, com.jme3.math.Matrix3f rotation) adds a child shape at the given local translationvoidCompoundCollisionShape.removeChildShape(CollisionShape shape) removes a child shape -
Uses of CollisionShape in com.jme3.bullet.collision.shapes.infos
Fields in com.jme3.bullet.collision.shapes.infos declared as CollisionShapeModifier and TypeFieldDescriptionChildCollisionShape.shapebase shape (not null, not a compound shape)Constructors in com.jme3.bullet.collision.shapes.infos with parameters of type CollisionShapeModifierConstructorDescriptionChildCollisionShape(com.jme3.math.Vector3f location, com.jme3.math.Matrix3f rotation, CollisionShape shape) Instantiate a child shape for use in a compound shape. -
Uses of CollisionShape in com.jme3.bullet.control
Methods in com.jme3.bullet.control that return CollisionShapeModifier and TypeMethodDescriptionprotected CollisionShapeBetterCharacterControl.getShape()Create a collision shape based on the scale parameter.Constructors in com.jme3.bullet.control with parameters of type CollisionShapeModifierConstructorDescriptionCharacterControl(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. -
Uses of CollisionShape in com.jme3.bullet.debug
Fields in com.jme3.bullet.debug declared as CollisionShapeModifier and TypeFieldDescriptionprotected CollisionShapeBulletCharacterDebugControl.myShapeshape for which geom was generatedprotected CollisionShapeBulletGhostObjectDebugControl.myShapeshape for which geom was generated (not null)protected CollisionShapeBulletRigidBodyDebugControl.myShapeshape for which geom was generated (not null) -
Uses of CollisionShape in com.jme3.bullet.objects
Methods in com.jme3.bullet.objects with parameters of type CollisionShapeModifier and TypeMethodDescriptionvoidPhysicsCharacter.setCollisionShape(CollisionShape collisionShape) voidPhysicsGhostObject.setCollisionShape(CollisionShape collisionShape) voidPhysicsRigidBody.setCollisionShape(CollisionShape collisionShape) Constructors in com.jme3.bullet.objects with parameters of type CollisionShapeModifierConstructorDescriptionPhysicsCharacter(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 shapePhysicsRigidBody(CollisionShape shape, float mass) PhysicsVehicle(CollisionShape shape) PhysicsVehicle(CollisionShape shape, float mass) -
Uses of CollisionShape in com.jme3.bullet.util
Methods in com.jme3.bullet.util that return CollisionShapeModifier and TypeMethodDescriptionstatic CollisionShapeCollisionShapeFactory.createBoxShape(com.jme3.scene.Spatial spatial) Create a box shape for the given Spatial.static CollisionShapeCollisionShapeFactory.createDynamicMeshShape(com.jme3.scene.Spatial spatial) Create a hull shape for the given Spatial.static CollisionShapeCollisionShapeFactory.createMeshShape(com.jme3.scene.Spatial spatial) Create a mesh shape for the given Spatial.Methods in com.jme3.bullet.util with parameters of type CollisionShapeModifier and TypeMethodDescriptionstatic com.jme3.scene.MeshDebugShapeFactory.getDebugMesh(CollisionShape shape) static com.jme3.scene.SpatialDebugShapeFactory.getDebugShape(CollisionShape collisionShape) Creates a debug shape from the given collision shape.