HomeSort by relevance Sort by last modified time
    Searched refs:spatial (Results 1 - 25 of 48) sorted by null

1 2

  /external/jmonkeyengine/engine/src/core/com/jme3/scene/
SceneGraphVisitor.java 6 * Use by calling {@link Spatial#depthFirstTraversal(com.jme3.scene.SceneGraphVisitor) }
7 * or {@link Spatial#breadthFirstTraversal(com.jme3.scene.SceneGraphVisitor)}.
11 * Called when a spatial is visited in the scene graph.
13 * @param spatial The visited spatial
15 public void visit(Spatial spatial);
SceneGraphVisitorAdapter.java 8 * Use by calling {@link Spatial#depthFirstTraversal(com.jme3.scene.SceneGraphVisitor) }
9 * or {@link Spatial#breadthFirstTraversal(com.jme3.scene.SceneGraphVisitor)}.
28 public final void visit(Spatial spatial) {
29 if (spatial instanceof Geometry) {
30 visit((Geometry)spatial);
32 visit((Node)spatial);
  /external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/util/
CollisionShapeFactory.java 59 private static Transform getTransform(Spatial spat, Spatial parent) {
61 Spatial parentNode = spat.getParent() != null ? spat.getParent() : spat;
62 Spatial currentSpatial = spat;
82 for (Spatial spatial : rootNode.getChildren()) {
83 if (spatial instanceof TerrainQuad) {
84 Boolean bool = spatial.getUserData(UserData.JME_PHYSICSIGNORE);
88 TerrainQuad terrain = (TerrainQuad) spatial;
89 Transform trans = getTransform(spatial, realRootNode)
    [all...]
  /external/jmonkeyengine/engine/src/core/com/jme3/cinematic/events/
PositionTrack.java 16 import com.jme3.scene.Spatial;
24 * @deprecated use spatial animation instead.
32 private Spatial spatial; field in class:PositionTrack
39 public PositionTrack(Spatial spatial, Vector3f endPosition) {
41 this.spatial = spatial;
42 spatialName = spatial.getName();
48 if (spatial == null)
    [all...]
RotationTrack.java 15 import com.jme3.scene.Spatial;
24 * @deprecated use spatial animation instead.
32 private Spatial spatial; field in class:RotationTrack
39 if (spatial == null) {
40 spatial = cinematic.getScene().getChild(spatialName);
41 if (spatial == null) {
43 log.log(Level.WARNING, "spatial {0} not found in the scene", spatialName);
51 public RotationTrack(Spatial spatial, Quaternion endRotation)
    [all...]
ScaleTrack.java 16 import com.jme3.scene.Spatial;
24 * @deprecated use spatial animation instead.
32 private Spatial spatial; field in class:ScaleTrack
39 if (spatial == null) {
40 spatial = cinematic.getScene().getChild(spatialName);
41 if (spatial == null) {
43 log.log(Level.WARNING, "spatial {0} not found in the scene", spatialName);
51 public ScaleTrack(Spatial spatial, Vector3f endScale)
    [all...]
MotionTrack.java 48 import com.jme3.scene.Spatial;
54 * A MotionTrack is a control over the spatial that manage the position and direction of the spatial while following a motion Path
56 * You must first create a MotionPath and then create a MotionTrack to associate a spatial and the path.
62 protected Spatial spatial; field in class:MotionTrack
73 * the distance traveled by the spatial on the path
108 * when using this constructor don't forget to assign spatial and path
115 * Creates a MotionPath for the given spatial on the given motion path
116 * @param spatial
    [all...]
  /external/jmonkeyengine/engine/src/core/com/jme3/scene/control/
AbstractControl.java 41 import com.jme3.scene.Spatial;
52 protected Spatial spatial; field in class:AbstractControl
57 public void setSpatial(Spatial spatial) {
58 if (this.spatial != null && spatial != null) {
59 throw new IllegalStateException("This control has already been added to a Spatial");
61 this.spatial = spatial;
    [all...]
Control.java 38 import com.jme3.scene.Spatial;
44 * for a {@link Spatial}.
51 * Creates a clone of the Control, the given Spatial is the cloned
52 * version of the spatial to which this control is attached to.
53 * @param spatial
54 * @return A clone of this control for the spatial
56 public Control cloneForSpatial(Spatial spatial);
59 * @param spatial the spatial to be controlled. This should not be calle
    [all...]
CameraControl.java 41 import com.jme3.scene.Spatial;
48 * of the current spatial.
57 * to the Transform of the Spatial.
61 * Means, that the Spatial's transform is "copied"
109 if (spatial != null && camera != null) {
112 camera.setLocation(spatial.getWorldTranslation());
113 camera.setRotation(spatial.getWorldRotation());
120 Vector3f vecDiff = vars.vect1.set(camera.getLocation()).subtractLocal(spatial.getWorldTranslation());
121 spatial.setLocalTranslation(vecDiff.addLocal(spatial.getLocalTranslation()))
    [all...]
LightControl.java 42 import com.jme3.scene.Spatial;
49 * of the current spatial.
58 * to the Transform of the Spatial.
62 * Means, that the Spatial's transform is "copied"
110 if (spatial != null && light != null) {
124 ((PointLight) light).setPosition(spatial.getWorldTranslation());
129 ((DirectionalLight) light).setDirection(vars.vect1.set(spatial.getWorldTranslation()).multLocal(-1.0f));
134 // ((SpotLight)light).setPosition(spatial.getWorldTranslation());
135 // ((SpotLight)light).setRotation(spatial.getWorldRotation());
146 Vector3f vecDiff = vars.vect1.set(pLight.getPosition()).subtractLocal(spatial.getWorldTranslation())
    [all...]
BillboardControl.java 47 import com.jme3.scene.Spatial;
90 public Control cloneForSpatial(Spatial spatial) {
93 control.setSpatial(spatial);
109 spatial.updateGeometricState();
112 Spatial rootNode = spatial;
150 spatial.getWorldTranslation());
178 spatial.setLocalRotation(orient);
195 Node parent = spatial.getParent()
    [all...]
LodControl.java 46 import com.jme3.scene.Spatial;
50 * Determines what Level of Detail a spatial should be, based on how many pixels
51 * on the screen the spatial is taking up. The more pixels covered, the more detailed
52 * the spatial should be.
53 * It calculates the area of the screen that the spatial covers by using its bounding box.
54 * When initializing, it will ask the spatial for how many triangles it has for each LOD.
57 * The controlRender method is called each frame and will update the spatial's LOD
121 public void setSpatial(Spatial spatial){
122 if (!(spatial instanceof Geometry)
    [all...]
  /external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/control/
GhostControl.java 18 import com.jme3.scene.Spatial;
23 * A GhostControl moves with the spatial it is attached to and can be used to check
29 protected Spatial spatial; field in class:GhostControl
48 * translation of the Spatial
57 return spatial.getLocalTranslation();
59 return spatial.getWorldTranslation();
64 return spatial.getLocalRotation();
66 return spatial.getWorldRotation();
69 public Control cloneForSpatial(Spatial spatial)
    [all...]
RigidBodyControl.java 23 import com.jme3.scene.Spatial;
35 protected Spatial spatial; field in class:RigidBodyControl
46 * automatically when the Control is added to a Spatial.
65 public Control cloneForSpatial(Spatial spatial) {
89 control.setSpatial(spatial);
93 public void setSpatial(Spatial spatial) {
94 if (getUserObject() == null || getUserObject() == this.spatial) {
    [all...]
CharacterControl.java 18 import com.jme3.scene.Spatial;
28 protected Spatial spatial; field in class:CharacterControl
49 * translation of the Spatial
58 return spatial.getLocalTranslation();
60 return spatial.getWorldTranslation();
63 public Control cloneForSpatial(Spatial spatial) {
77 control.setSpatial(spatial);
81 public void setSpatial(Spatial spatial)
    [all...]
VehicleControl.java 21 import com.jme3.scene.Spatial;
33 protected Spatial spatial; field in class:VehicleControl
59 * translation of the Spatial
72 return spatial.getLocalTranslation();
74 return spatial.getWorldTranslation();
79 return spatial.getLocalRotation();
81 return spatial.getWorldRotation();
84 public Control cloneForSpatial(Spatial spatial) {
    [all...]
  /external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/infos/
RigidBodyMotionState.java 38 import com.jme3.scene.Spatial;
66 * @param spatial
68 public synchronized boolean applyTransform(Spatial spatial) {
69 Vector3f localLocation = spatial.getLocalTranslation();
70 Quaternion localRotationQuat = spatial.getLocalRotation();
75 if (!applyPhysicsLocal && spatial.getParent() != null) {
76 localLocation.subtractLocal(spatial.getParent().getWorldTranslation());
77 localLocation.divideLocal(spatial.getParent().getWorldScale());
78 tmp_inverseWorldRotation.set(spatial.getParent().getWorldRotation()).inverseLocal().multLocal(localLocation)
    [all...]
  /external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/objects/infos/
RigidBodyMotionState.java 41 import com.jme3.scene.Spatial;
103 * @param spatial
105 public synchronized boolean applyTransform(Spatial spatial) {
109 if (!applyPhysicsLocal && spatial.getParent() != null) {
110 localLocation.set(worldLocation).subtractLocal(spatial.getParent().getWorldTranslation());
111 localLocation.divideLocal(spatial.getParent().getWorldScale());
112 tmp_inverseWorldRotation.set(spatial.getParent().getWorldRotation()).inverseLocal().multLocal(localLocation);
115 tmp_inverseWorldRotation.set(spatial.getParent().getWorldRotation()).inverseLocal().mult(localRotationQuat, localRotationQuat);
117 spatial.setLocalTranslation(localLocation)
    [all...]
  /external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
NormalRecalcControl.java 40 import com.jme3.scene.Spatial;
70 public Control cloneForSpatial(Spatial spatial) {
72 control.setSpatial(spatial);
78 public void setSpatial(Spatial spatial) {
79 super.setSpatial(spatial);
80 if (spatial instanceof TerrainQuad)
81 this.terrain = (TerrainQuad)spatial;
TerrainLodControl.java 43 import com.jme3.scene.Spatial;
89 * @param terrain to act upon (must be a Spatial)
133 public Control cloneForSpatial(Spatial spatial) {
134 if (spatial instanceof Terrain) {
141 TerrainLodControl cloned = new TerrainLodControl((Terrain) spatial, cameraClone);
163 public void setSpatial(Spatial spatial) {
164 super.setSpatial(spatial);
165 if (spatial instanceof Terrain) {
    [all...]
  /external/jmonkeyengine/engine/src/test/jme3test/bullet/
PhysicsHoverControl.java 47 import com.jme3.scene.Spatial;
57 protected Spatial spatial; field in class:PhysicsHoverControl
97 public Control cloneForSpatial(Spatial spatial) {
101 public void setSpatial(Spatial spatial) {
102 this.spatial = spatial;
103 setUserObject(spatial);
    [all...]
  /external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/constraints/
Feature.java 8 import com.jme3.scene.Spatial;
26 /** The spatial that is hold by the Feature. */
27 protected Spatial spatial; field in class:Feature
39 * the spatial's evaluation space
41 * the spatial's old memory address
52 * Constructs the feature based on spatial.
54 * @param spatial
55 * the spatial
57 * the spatial's evaluation space
    [all...]
  /external/jmonkeyengine/engine/src/test/jme3test/post/
TestCartoonEdge.java 47 import com.jme3.scene.Spatial;
48 import com.jme3.scene.Spatial.CullHint;
71 public void makeToonish(Spatial spatial){
72 if (spatial instanceof Node){
73 Node n = (Node) spatial;
74 for (Spatial child : n.getChildren())
76 }else if (spatial instanceof Geometry){
77 Geometry g = (Geometry) spatial;
102 Spatial model = assetManager.loadModel("Models/MonkeyHead/MonkeyHead.mesh.xml")
    [all...]
  /external/jmonkeyengine/engine/src/core/com/jme3/animation/
AnimControl.java 38 import com.jme3.scene.Spatial;
48 * <code>AnimControl</code> is a Spatial control that allows manipulation
110 public Control cloneForSpatial(Spatial spatial) {
113 clone.spatial = spatial;
277 public void setSpatial(Spatial spatial) {
278 if (spatial == null && skeletonControl != null) {
279 this.spatial.removeControl(skeletonControl);
    [all...]

Completed in 932 milliseconds

1 2