public abstract class WheelModel
extends java.lang.Object
implements jme3utilities.Loadable
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
| Modifier | Constructor and Description |
|---|---|
protected |
WheelModel(float diameter)
Instantiate a model with the specified diameter.
|
| Modifier and Type | Method and Description |
|---|---|
WheelModel |
flip()
Convert a left-side wheel into a right-side wheel, or vice versa.
|
com.jme3.scene.Spatial |
getSpatial()
Access the model's root spatial.
|
com.jme3.scene.Node |
getWheelNode()
Access the parent of the model's root spatial.
|
float |
radius()
Determine the wheel's radius.
|
protected void |
setSpatial(com.jme3.scene.Spatial wheelSpatial)
Initialize the C-G model.
|
public static final java.util.logging.Logger logger
protected WheelModel(float diameter)
diameter - the desired diameter (in local units, >0)public WheelModel flip()
public com.jme3.scene.Spatial getSpatial()
public com.jme3.scene.Node getWheelNode()
public float radius()
protected void setSpatial(com.jme3.scene.Spatial wheelSpatial)
wheelSpatial - the desired C-G model (not null)