public abstract class CollisionShape
extends java.lang.Object
implements com.jme3.export.Savable
| Modifier and Type | Field and Description |
|---|---|
protected com.bulletphysics.collision.shapes.CollisionShape |
cShape |
protected float |
margin |
protected com.jme3.math.Vector3f |
scale |
| Constructor and Description |
|---|
CollisionShape() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateLocalInertia(float mass,
javax.vecmath.Vector3f vector)
used internally, not safe
|
com.bulletphysics.collision.shapes.CollisionShape |
getCShape()
used internally
|
float |
getMargin() |
com.jme3.math.Vector3f |
getScale() |
void |
read(com.jme3.export.JmeImporter im) |
void |
setCShape(com.bulletphysics.collision.shapes.CollisionShape cShape)
used internally
|
void |
setMargin(float margin) |
void |
setScale(com.jme3.math.Vector3f scale) |
void |
write(com.jme3.export.JmeExporter ex) |
protected com.bulletphysics.collision.shapes.CollisionShape cShape
protected com.jme3.math.Vector3f scale
protected float margin
public void calculateLocalInertia(float mass,
javax.vecmath.Vector3f vector)
public com.bulletphysics.collision.shapes.CollisionShape getCShape()
public void setCShape(com.bulletphysics.collision.shapes.CollisionShape cShape)
public void setScale(com.jme3.math.Vector3f scale)
public float getMargin()
public void setMargin(float margin)
public com.jme3.math.Vector3f getScale()
public void write(com.jme3.export.JmeExporter ex)
throws java.io.IOException
write in interface com.jme3.export.Savablejava.io.IOExceptionpublic void read(com.jme3.export.JmeImporter im)
throws java.io.IOException
read in interface com.jme3.export.Savablejava.io.IOException