com.jme3.bullet.collision.shapes
Class SimplexCollisionShape

java.lang.Object
  extended by com.jme3.bullet.collision.shapes.CollisionShape
      extended by com.jme3.bullet.collision.shapes.SimplexCollisionShape
All Implemented Interfaces:
Savable

public class SimplexCollisionShape
extends CollisionShape

A simple point, line, triangle or quad collisionShape based on one to four points-


Field Summary
 
Fields inherited from class com.jme3.bullet.collision.shapes.CollisionShape
margin, objectId, scale
 
Constructor Summary
SimplexCollisionShape()
           
SimplexCollisionShape(Vector3f point1)
           
SimplexCollisionShape(Vector3f point1, Vector3f point2)
           
SimplexCollisionShape(Vector3f point1, Vector3f point2, Vector3f point3)
           
SimplexCollisionShape(Vector3f point1, Vector3f point2, Vector3f point3, Vector3f point4)
           
 
Method Summary
protected  void createShape()
           
 void read(JmeImporter im)
           
 void write(JmeExporter ex)
           
 
Methods inherited from class com.jme3.bullet.collision.shapes.CollisionShape
finalize, getMargin, getObjectId, getScale, setMargin, setObjectId, setScale
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplexCollisionShape

public SimplexCollisionShape()

SimplexCollisionShape

public SimplexCollisionShape(Vector3f point1,
                             Vector3f point2,
                             Vector3f point3,
                             Vector3f point4)

SimplexCollisionShape

public SimplexCollisionShape(Vector3f point1,
                             Vector3f point2,
                             Vector3f point3)

SimplexCollisionShape

public SimplexCollisionShape(Vector3f point1,
                             Vector3f point2)

SimplexCollisionShape

public SimplexCollisionShape(Vector3f point1)
Method Detail

write

public void write(JmeExporter ex)
           throws java.io.IOException
Specified by:
write in interface Savable
Overrides:
write in class CollisionShape
Throws:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
Specified by:
read in interface Savable
Overrides:
read in class CollisionShape
Throws:
java.io.IOException

createShape

protected void createShape()