HomeSort by relevance Sort by last modified time
    Searched refs:collisionShape (Results 1 - 15 of 15) sorted by null

  /external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/util/
DebugShapeFactory.java 34 import com.jme3.bullet.collision.shapes.CollisionShape;
61 * @param collisionShape
64 public static Spatial getDebugShape(CollisionShape collisionShape) {
65 if (collisionShape == null) {
69 if (collisionShape instanceof CompoundCollisionShape) {
70 CompoundCollisionShape shape = (CompoundCollisionShape) collisionShape;
75 CollisionShape ccollisionShape = childCollisionShape.shape;
95 debugShape = createDebugShape(collisionShape);
104 private static Geometry createDebugShape(CollisionShape shape)
    [all...]
  /external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/
PhysicsCollisionObject.java 35 import com.jme3.bullet.collision.shapes.CollisionShape;
65 protected CollisionShape collisionShape;
88 * Sets a CollisionShape to this physics object, note that the object should
91 * @param collisionShape the CollisionShape to set
93 public void setCollisionShape(CollisionShape collisionShape) {
94 this.collisionShape = collisionShape;
    [all...]
  /external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/collision/
PhysicsCollisionObject.java 35 import com.jme3.bullet.collision.shapes.CollisionShape;
62 protected CollisionShape collisionShape;
85 * Sets a CollisionShape to this physics object, note that the object should
88 * @param collisionShape the CollisionShape to set
90 public void setCollisionShape(CollisionShape collisionShape) {
91 this.collisionShape = collisionShape;
    [all...]
  /external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/objects/
PhysicsCharacter.java 40 import com.jme3.bullet.collision.shapes.CollisionShape;
75 * @param shape The CollisionShape (no Mesh or CompoundCollisionShapes)
78 public PhysicsCharacter(CollisionShape shape, float stepHeight) {
79 this.collisionShape = shape;
93 gObject.setCollisionShape(collisionShape.getCShape());
95 character = new KinematicCharacterController(gObject, (ConvexShape) collisionShape.getCShape(), stepHeight);
181 public void setCollisionShape(CollisionShape collisionShape) {
182 if (!(collisionShape.getCShape() instanceof ConvexShape)) {
185 super.setCollisionShape(collisionShape);
    [all...]
PhysicsRigidBody.java 40 import com.jme3.bullet.collision.shapes.CollisionShape;
87 public PhysicsRigidBody(CollisionShape shape) {
88 collisionShape = shape;
92 public PhysicsRigidBody(CollisionShape shape, float mass) {
93 collisionShape = shape;
103 if(collisionShape instanceof MeshCollisionShape && mass != 0){
122 collisionShape.calculateLocalInertia(mass, localInertia);
124 constructionInfo = new RigidBodyConstructionInfo(mass, motionState, collisionShape.getCShape(), localInertia);
127 constructionInfo.collisionShape = collisionShape.getCShape()
    [all...]
PhysicsGhostObject.java 38 import com.jme3.bullet.collision.shapes.CollisionShape;
74 public PhysicsGhostObject(CollisionShape shape) {
75 collisionShape = shape;
79 public PhysicsGhostObject(Spatial child, CollisionShape shape) {
80 collisionShape = shape;
89 gObject.setCollisionShape(collisionShape.getCShape());
94 public void setCollisionShape(CollisionShape collisionShape) {
95 super.setCollisionShape(collisionShape);
99 gObject.setCollisionShape(collisionShape.getCShape())
    [all...]
  /external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/control/
RigidBodyControl.java 9 import com.jme3.bullet.collision.shapes.CollisionShape;
45 * When using this constructor, the CollisionShape for the RigidBody is generated
57 public RigidBodyControl(CollisionShape shape) {
61 public RigidBodyControl(CollisionShape shape, float mass) {
66 RigidBodyControl control = new RigidBodyControl(collisionShape, mass);
103 collisionShape = null;
106 if (collisionShape == null) {
122 collisionShape = new SphereCollisionShape(((Sphere) mesh).getRadius());
125 collisionShape = new BoxCollisionShape(new Vector3f(((Box) mesh).getXExtent(), ((Box) mesh).getYExtent(), ((Box) mesh).getZExtent()));
130 collisionShape = CollisionShapeFactory.createDynamicMeshShape(spatial)
    [all...]
GhostControl.java 8 import com.jme3.bullet.collision.shapes.CollisionShape;
38 public GhostControl(CollisionShape shape) {
70 GhostControl control = new GhostControl(collisionShape);
VehicleControl.java 8 import com.jme3.bullet.collision.shapes.CollisionShape;
45 public VehicleControl(CollisionShape shape) {
49 public VehicleControl(CollisionShape shape, float mass) {
85 VehicleControl control = new VehicleControl(collisionShape, mass);
145 this.collisionShape = null;
CharacterControl.java 8 import com.jme3.bullet.collision.shapes.CollisionShape;
39 public CharacterControl(CollisionShape shape, float stepHeight) {
64 CharacterControl control = new CharacterControl(collisionShape, stepHeight);
  /external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/
PhysicsRigidBody.java 36 import com.jme3.bullet.collision.shapes.CollisionShape;
77 public PhysicsRigidBody(CollisionShape shape) {
78 collisionShape = shape;
82 public PhysicsRigidBody(CollisionShape shape, float mass) {
83 collisionShape = shape;
93 if (collisionShape instanceof MeshCollisionShape && mass != 0) {
105 objectId = createRigidBody(mass, motionState.getObjectId(), collisionShape.getObjectId());
318 if (collisionShape instanceof MeshCollisionShape && mass != 0) {
322 if (collisionShape != null) {
323 updateMassProps(objectId, collisionShape.getObjectId(), mass)
    [all...]
PhysicsCharacter.java 35 import com.jme3.bullet.collision.shapes.CollisionShape;
66 * @param shape The CollisionShape (no Mesh or CompoundCollisionShapes)
69 public PhysicsCharacter(CollisionShape shape, float stepHeight) {
70 this.collisionShape = shape;
85 attachCollisionShape(objectId, collisionShape.getObjectId());
90 characterId = createCharacterObject(objectId, collisionShape.getObjectId(), stepHeight);
201 public void setCollisionShape(CollisionShape collisionShape) {
202 // if (!(collisionShape.getObjectId() instanceof ConvexShape)) {
205 super.setCollisionShape(collisionShape);
    [all...]
PhysicsGhostObject.java 35 import com.jme3.bullet.collision.shapes.CollisionShape;
67 public PhysicsGhostObject(CollisionShape shape) {
68 collisionShape = shape;
72 public PhysicsGhostObject(Spatial child, CollisionShape shape) {
73 collisionShape = shape;
89 attachCollisionShape(objectId, collisionShape.getObjectId());
97 public void setCollisionShape(CollisionShape collisionShape) {
98 super.setCollisionShape(collisionShape);
102 attachCollisionShape(objectId, collisionShape.getObjectId())
    [all...]
  /external/jmonkeyengine/engine/src/bullet-native/
com_jme3_bullet_collision_PhysicsCollisionObject.cpp 57 btCollisionShape* collisionShape = reinterpret_cast<btCollisionShape*>(shapeId);
58 if (collisionShape == NULL) {
63 collisionObject->setCollisionShape(collisionShape);
  /external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/util/
DebugShapeFactory.java 39 import com.jme3.bullet.collision.shapes.CollisionShape;
70 * @param collisionShape
73 public static Spatial getDebugShape(CollisionShape collisionShape) {
74 if (collisionShape == null) {
78 if (collisionShape instanceof CompoundCollisionShape) {
79 CompoundCollisionShape shape = (CompoundCollisionShape) collisionShape;
84 CollisionShape ccollisionShape = childCollisionShape.shape;
105 debugShape = createDebugShape(collisionShape);
114 private static Geometry createDebugShape(CollisionShape shape)
    [all...]

Completed in 550 milliseconds