public class SpatialFactory extends Object
| Constructor and Description |
|---|
SpatialFactory() |
| Modifier and Type | Method and Description |
|---|---|
static com.jme3.font.BitmapText |
attachAName(com.jme3.scene.Node node)
Creates a geometry with the same name of the given node.
|
static com.jme3.font.BitmapText |
attachAName(com.jme3.scene.Node node,
String name)
Creates a geometry with the same name of the given node.
|
static boolean |
contains(com.jme3.scene.Node parent,
com.jme3.scene.Spatial s) |
static com.jme3.scene.Geometry |
createArrow(com.jme3.math.Vector3f dir,
float lineWidth,
com.jme3.math.ColorRGBA color) |
static com.jme3.scene.Geometry |
createCube(com.jme3.math.Vector3f dimensions,
com.jme3.math.ColorRGBA color)
Creates a cube given its dimensions and its color
|
static com.jme3.scene.Geometry |
createImageTextureSurface(String imgPath,
float width,
float height) |
static com.jme3.scene.Geometry |
createShape(String name,
com.jme3.scene.Mesh shape,
com.jme3.math.ColorRGBA color)
Creates a geometry given its name, its mesh and its color
|
static com.jme3.scene.Geometry |
createSphere(float radius,
com.jme3.math.ColorRGBA color,
boolean transparent) |
static com.jme3.asset.AssetManager |
getAssetManager() |
static com.jme3.scene.Node |
getRootNode() |
static void |
init(com.jme3.asset.AssetManager assetManager,
com.jme3.scene.Node rootNode) |
public static void init(com.jme3.asset.AssetManager assetManager,
com.jme3.scene.Node rootNode)
public static com.jme3.asset.AssetManager getAssetManager()
public static com.jme3.scene.Node getRootNode()
public static com.jme3.scene.Geometry createCube(com.jme3.math.Vector3f dimensions,
com.jme3.math.ColorRGBA color)
dimensions - color - public static com.jme3.scene.Geometry createArrow(com.jme3.math.Vector3f dir,
float lineWidth,
com.jme3.math.ColorRGBA color)
public static com.jme3.scene.Geometry createShape(String name, com.jme3.scene.Mesh shape, com.jme3.math.ColorRGBA color)
name - shape - color - public static com.jme3.scene.Geometry createSphere(float radius,
com.jme3.math.ColorRGBA color,
boolean transparent)
public static com.jme3.font.BitmapText attachAName(com.jme3.scene.Node node)
node - public static com.jme3.font.BitmapText attachAName(com.jme3.scene.Node node,
String name)
node - public static com.jme3.scene.Geometry createImageTextureSurface(String imgPath, float width, float height)
public static boolean contains(com.jme3.scene.Node parent,
com.jme3.scene.Spatial s)
Copyright © 2017. All Rights Reserved.