Searched refs:spatial (Results 1 - 25 of 51) sorted by relevance

123

/external/jmonkeyengine/engine/src/core/com/jme3/scene/
H A DSceneGraphVisitor.java11 * Called when a spatial is visited in the scene graph.
13 * @param spatial The visited spatial
15 public void visit(Spatial spatial); argument
H A DSceneGraphVisitorAdapter.java28 public final void visit(Spatial spatial) { argument
29 if (spatial instanceof Geometry) {
30 visit((Geometry)spatial);
32 visit((Node)spatial);
/external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/util/
H A DCollisionShapeFactory.java82 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);
93 } else if (spatial instanceof Node) {
94 createCompoundShape(realRootNode, (Node) spatial, shape, meshAccurate, dynamic);
95 } else if (spatial instanceof TerrainPatch) {
96 Boolean bool = spatial.getUserData(UserData.JME_PHYSICSIGNORE);
100 TerrainPatch terrain = (TerrainPatch) spatial;
163 createMeshShape(Spatial spatial) argument
184 createDynamicMeshShape(Spatial spatial) argument
195 createBoxShape(Spatial spatial) argument
227 createSingleBoxShape(Spatial spatial, Spatial parent) argument
[all...]
/external/jmonkeyengine/engine/src/core/com/jme3/cinematic/events/
H A DPositionTrack.java24 * @deprecated use spatial animation instead.
32 private Spatial spatial; field in class:PositionTrack
39 public PositionTrack(Spatial spatial, Vector3f endPosition) { argument
41 this.spatial = spatial;
42 spatialName = spatial.getName();
48 if (spatial == null) {
49 spatial = cinematic.getScene().getChild(spatialName);
50 if (spatial == null) {
52 log.log(Level.WARNING, "spatial {
57 PositionTrack(Spatial spatial, Vector3f endPosition, float initialDuration, LoopMode loopMode) argument
64 PositionTrack(Spatial spatial, Vector3f endPosition, LoopMode loopMode) argument
71 PositionTrack(Spatial spatial, Vector3f endPosition, float initialDuration) argument
[all...]
H A DRotationTrack.java24 * @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) { argument
53 this.spatial = spatial;
54 spatialName = spatial
57 RotationTrack(Spatial spatial, Quaternion endRotation, float initialDuration, LoopMode loopMode) argument
64 RotationTrack(Spatial spatial, Quaternion endRotation, LoopMode loopMode) argument
71 RotationTrack(Spatial spatial, Quaternion endRotation, float initialDuration) argument
[all...]
H A DScaleTrack.java24 * @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) { argument
53 this.spatial = spatial;
54 spatialName = spatial
57 ScaleTrack(Spatial spatial, Vector3f endScale, float initialDuration, LoopMode loopMode) argument
64 ScaleTrack(Spatial spatial, Vector3f endScale, LoopMode loopMode) argument
71 ScaleTrack(Spatial spatial, Vector3f endScale, float initialDuration) argument
[all...]
H A DMotionTrack.java54 * 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
119 public MotionTrack(Spatial spatial, MotionPath path) { argument
121 this.spatial
131 MotionTrack(Spatial spatial, MotionPath path, float initialDuration) argument
143 MotionTrack(Spatial spatial, MotionPath path, LoopMode loopMode) argument
156 MotionTrack(Spatial spatial, MotionPath path, float initialDuration, LoopMode loopMode) argument
263 cloneForSpatial(Spatial spatial) argument
425 setSpatial(Spatial spatial) argument
[all...]
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/
H A DAbstractControl.java52 protected Spatial spatial; field in class:AbstractControl
57 public void setSpatial(Spatial spatial) { argument
58 if (this.spatial != null && spatial != null) {
61 this.spatial = spatial;
65 return spatial;
103 oc.write(spatial, "spatial", null);
109 spatial
[all...]
H A DControl.java52 * 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); argument
59 * @param spatial the spatial to be controlled. This should not be called
62 public void setSpatial(Spatial spatial); argument
83 * Should be called prior to queuing the spatial by the RenderManager. This
H A DCameraControl.java48 * of the current spatial.
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()));
124 Quaternion worldDiff = vars.quat1.set(camera.getRotation()).subtractLocal(spatial.getWorldRotation());
125 spatial.setLocalRotation(worldDiff.addLocal(spatial
[all...]
H A DLightControl.java49 * of the current spatial.
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());
147 spatial.setLocalTranslation(vecDiff.addLocal(spatial.getLocalTranslation()));
153 Vector3f vecDiff = vars.vect1.subtractLocal(spatial
[all...]
H A DBillboardControl.java90 public Control cloneForSpatial(Spatial spatial) { argument
93 control.setSpatial(spatial);
109 spatial.updateGeometricState();
112 Spatial rootNode = spatial;
150 spatial.getWorldTranslation());
178 spatial.setLocalRotation(orient);
195 Node parent = spatial.getParent();
201 spatial.setLocalRotation(rot);
216 spatial.getWorldTranslation());
217 spatial
[all...]
H A DLodControl.java50 * 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){ argument
122 if (!(spatial instanceof Geometry))
125 super.setSpatial(spatial);
126 Geometry geom = (Geometry) spatial;
134 cloneForSpatial(Spatial spatial) argument
[all...]
/external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/control/
H A DGhostControl.java23 * A GhostControl moves with the spatial it is attached to and can be used to check
29 protected Spatial spatial; field in class:GhostControl
57 return spatial.getLocalTranslation();
59 return spatial.getWorldTranslation();
64 return spatial.getLocalRotation();
66 return spatial.getWorldRotation();
69 public Control cloneForSpatial(Spatial spatial) { argument
79 control.setSpatial(spatial);
83 public void setSpatial(Spatial spatial) { argument
84 if (getUserObject() == null || getUserObject() == this.spatial) {
[all...]
H A DRigidBodyControl.java35 protected Spatial spatial; field in class:RigidBodyControl
65 public Control cloneForSpatial(Spatial spatial) { argument
89 control.setSpatial(spatial);
93 public void setSpatial(Spatial spatial) { argument
94 if (getUserObject() == null || getUserObject() == this.spatial) {
95 setUserObject(spatial);
97 this.spatial = spatial;
98 if (spatial == null) {
99 if (getUserObject() == spatial) {
[all...]
H A DCharacterControl.java28 protected Spatial spatial; field in class:CharacterControl
58 return spatial.getLocalTranslation();
60 return spatial.getWorldTranslation();
63 public Control cloneForSpatial(Spatial spatial) { argument
77 control.setSpatial(spatial);
81 public void setSpatial(Spatial spatial) { argument
82 if (getUserObject() == null || getUserObject() == this.spatial) {
83 setUserObject(spatial);
85 this.spatial = spatial;
[all...]
H A DVehicleControl.java33 protected Spatial spatial; field in class:VehicleControl
72 return spatial.getLocalTranslation();
74 return spatial.getWorldTranslation();
79 return spatial.getLocalRotation();
81 return spatial.getWorldRotation();
84 public Control cloneForSpatial(Spatial spatial) { argument
121 if (spatial instanceof Node) {
122 Node node = (Node) spatial;
131 control.setSpatial(spatial);
135 public void setSpatial(Spatial spatial) { argument
[all...]
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/infos/
H A DRigidBodyMotionState.java66 * @param spatial
68 public synchronized boolean applyTransform(Spatial spatial) { argument
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);
83 spatial.setLocalTranslation(localLocation);
84 spatial
[all...]
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/objects/infos/
H A DRigidBodyMotionState.java103 * @param spatial
105 public synchronized boolean applyTransform(Spatial spatial) { argument
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);
118 spatial.setLocalRotation(localRotationQuat);
120 spatial
[all...]
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
H A DNormalRecalcControl.java70 public Control cloneForSpatial(Spatial spatial) { argument
72 control.setSpatial(spatial);
78 public void setSpatial(Spatial spatial) { argument
79 super.setSpatial(spatial);
80 if (spatial instanceof TerrainQuad)
81 this.terrain = (TerrainQuad)spatial;
H A DTerrainLodControl.java133 public Control cloneForSpatial(Spatial spatial) { argument
134 if (spatial instanceof Terrain) {
141 TerrainLodControl cloned = new TerrainLodControl((Terrain) spatial, cameraClone);
163 public void setSpatial(Spatial spatial) { argument
164 super.setSpatial(spatial);
165 if (spatial instanceof Terrain) {
166 this.terrain = (Terrain) spatial;
/external/jmonkeyengine/engine/src/test/jme3test/bullet/
H A DPhysicsHoverControl.java57 protected Spatial spatial; field in class:PhysicsHoverControl
97 public Control cloneForSpatial(Spatial spatial) { argument
101 public void setSpatial(Spatial spatial) { argument
102 this.spatial = spatial;
103 setUserObject(spatial);
104 if (spatial == null) {
107 setPhysicsLocation(spatial.getWorldTranslation());
108 setPhysicsRotation(spatial.getWorldRotation().toRotationMatrix());
173 if (enabled && spatial !
[all...]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/constraints/
H A DFeature.java26 /** 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
59 * the spatial's old memory address
63 public Feature(Spatial spatial, Spac argument
[all...]
/external/jmonkeyengine/engine/src/test/jme3test/post/
H A DTestCartoonEdge.java71 public void makeToonish(Spatial spatial){ argument
72 if (spatial instanceof Node){
73 Node n = (Node) spatial;
76 }else if (spatial instanceof Geometry){
77 Geometry g = (Geometry) spatial;
/external/jmonkeyengine/engine/src/core/com/jme3/animation/
H A DAnimControl.java110 public Control cloneForSpatial(Spatial spatial) { argument
113 clone.spatial = spatial;
277 public void setSpatial(Spatial spatial) { argument
278 if (spatial == null && skeletonControl != null) {
279 this.spatial.removeControl(skeletonControl);
282 super.setSpatial(spatial);
285 if (spatial != null && skeletonControl != null) {
286 spatial.addControl(skeletonControl);
366 // SkeletonControl for old files and add it to the spatial
[all...]

Completed in 1319 milliseconds

123