public abstract class World extends java.lang.Object implements jme3utilities.Loadable, VehicleWorld
| Constructor and Description |
|---|
World() |
| Modifier and Type | Method and Description |
|---|---|
void |
attach(com.jme3.app.Application application,
com.jme3.scene.Node parentNode,
com.jme3.bullet.PhysicsSpace physicsSpace)
Attach this World to the scene and PhysicsSpace of the specified
Application.
|
void |
chunkDimensions(com.jme3.math.Vector3f storeResult)
Determine the dimensions of each scene chunk, in scene units.
|
void |
detach()
Detach this World from the scene and PhysicsSpace to which it was
attached.
|
abstract float |
farDistance()
Determine the distance to the camera's far plane.
|
com.jme3.asset.AssetManager |
getAssetManager()
Access the AssetManager.
|
protected com.jme3.renderer.Camera |
getCamera()
Access the application's default Camera.
|
com.jme3.scene.Node |
getCgm()
Access the loaded C-G model.
|
protected ChunkManager |
getChunkManager()
Access the ChunkManager.
|
com.jme3.bullet.collision.shapes.CollisionShape |
getCollisionShape()
Access the loaded CollisionShape.
|
DecalManager |
getDecalManager()
Access the DecalManager.
|
com.jme3.scene.Node |
getParentNode()
Access the scene-graph node for adding probes and attaching spatials.
|
com.jme3.bullet.PhysicsSpace |
getPhysicsSpace()
Access the PhysicsSpace.
|
com.jme3.app.state.AppStateManager |
getStateManager()
Access the AppStateManager.
|
protected java.util.Set<jme3utilities.math.Vector3i> |
listNearbyChunks()
Enumerate all chunks that are near the scene origin.
|
void |
load(com.jme3.asset.AssetManager assetManager)
Load the assets of this Vehicle.
|
abstract void |
resetCameraPosition()
Reposition the default Camera to the initial location and orientation for
this World.
|
protected void |
setCgm(com.jme3.scene.Node cgm)
Alter which C-G model is loaded.
|
protected void |
setCollisionShape(com.jme3.bullet.collision.shapes.CollisionShape shape)
Alter which CollisionShape is loaded.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdropYRotation, locateDroppublic void attach(com.jme3.app.Application application,
com.jme3.scene.Node parentNode,
com.jme3.bullet.PhysicsSpace physicsSpace)
application - the application instance (not null, alias created)parentNode - where to add probes and attach spatials (not null,
alias created)physicsSpace - where to add bodies and joints (not null, alias
created)public void chunkDimensions(com.jme3.math.Vector3f storeResult)
storeResult - storage for the result (not null)public void detach()
public abstract float farDistance()
public com.jme3.scene.Node getCgm()
public com.jme3.bullet.collision.shapes.CollisionShape getCollisionShape()
public abstract void resetCameraPosition()
protected com.jme3.renderer.Camera getCamera()
protected ChunkManager getChunkManager()
protected java.util.Set<jme3utilities.math.Vector3i> listNearbyChunks()
protected void setCgm(com.jme3.scene.Node cgm)
cgm - the desired modelprotected void setCollisionShape(com.jme3.bullet.collision.shapes.CollisionShape shape)
shape - the desired shapepublic void load(com.jme3.asset.AssetManager assetManager)
load in interface jme3utilities.LoadableassetManager - for loading assets (not null)public com.jme3.asset.AssetManager getAssetManager()
getAssetManager in interface VehicleWorldpublic DecalManager getDecalManager()
getDecalManager in interface VehicleWorldpublic com.jme3.scene.Node getParentNode()
getParentNode in interface VehicleWorldpublic com.jme3.bullet.PhysicsSpace getPhysicsSpace()
getPhysicsSpace in interface VehicleWorldpublic com.jme3.app.state.AppStateManager getStateManager()
getStateManager in interface VehicleWorld