Home
last modified time | relevance | path

Searched refs:spatial (Results 1 – 25 of 63) sorted by relevance

123

/external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/util/
DCollisionShapeFactory.java82 for (Spatial spatial : rootNode.getChildren()) { in createCompoundShape()
83 if (spatial instanceof TerrainQuad) { in createCompoundShape()
84 Boolean bool = spatial.getUserData(UserData.JME_PHYSICSIGNORE); in createCompoundShape()
88 TerrainQuad terrain = (TerrainQuad) spatial; in createCompoundShape()
89 Transform trans = getTransform(spatial, realRootNode); in createCompoundShape()
93 } else if (spatial instanceof Node) { in createCompoundShape()
94 createCompoundShape(realRootNode, (Node) spatial, shape, meshAccurate, dynamic); in createCompoundShape()
95 } else if (spatial instanceof TerrainPatch) { in createCompoundShape()
96 Boolean bool = spatial.getUserData(UserData.JME_PHYSICSIGNORE); in createCompoundShape()
100 TerrainPatch terrain = (TerrainPatch) spatial; in createCompoundShape()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/cinematic/events/
DScaleTrack.java32 private Spatial spatial; field in ScaleTrack
39 if (spatial == null) { in initEvent()
40 spatial = cinematic.getScene().getChild(spatialName); in initEvent()
41 if (spatial == null) { in initEvent()
51 public ScaleTrack(Spatial spatial, Vector3f endScale) { in ScaleTrack() argument
53 this.spatial = spatial; in ScaleTrack()
54 spatialName = spatial.getName(); in ScaleTrack()
57 … public ScaleTrack(Spatial spatial, Vector3f endScale, float initialDuration, LoopMode loopMode) { in ScaleTrack() argument
60 this.spatial = spatial; in ScaleTrack()
61 spatialName = spatial.getName(); in ScaleTrack()
[all …]
DPositionTrack.java32 private Spatial spatial; field in PositionTrack
39 public PositionTrack(Spatial spatial, Vector3f endPosition) { in PositionTrack() argument
41 this.spatial = spatial; in PositionTrack()
42 spatialName = spatial.getName(); in PositionTrack()
48 if (spatial == null) { in initEvent()
49 spatial = cinematic.getScene().getChild(spatialName); in initEvent()
50 if (spatial == null) { in initEvent()
57 …public PositionTrack(Spatial spatial, Vector3f endPosition, float initialDuration, LoopMode loopMo… in PositionTrack() argument
60 this.spatial = spatial; in PositionTrack()
61 spatialName = spatial.getName(); in PositionTrack()
[all …]
DRotationTrack.java32 private Spatial spatial; field in RotationTrack
39 if (spatial == null) { in initEvent()
40 spatial = cinematic.getScene().getChild(spatialName); in initEvent()
41 if (spatial == null) { in initEvent()
51 public RotationTrack(Spatial spatial, Quaternion endRotation) { in RotationTrack() argument
53 this.spatial = spatial; in RotationTrack()
54 spatialName = spatial.getName(); in RotationTrack()
57 …public RotationTrack(Spatial spatial, Quaternion endRotation, float initialDuration, LoopMode loop… in RotationTrack() argument
60 this.spatial = spatial; in RotationTrack()
61 spatialName = spatial.getName(); in RotationTrack()
[all …]
DMotionTrack.java62 protected Spatial spatial; field in MotionTrack
119 public MotionTrack(Spatial spatial, MotionPath path) { in MotionTrack() argument
121 this.spatial = spatial; in MotionTrack()
122 spatial.addControl(this); in MotionTrack()
131 public MotionTrack(Spatial spatial, MotionPath path, float initialDuration) { in MotionTrack() argument
133 this.spatial = spatial; in MotionTrack()
134 spatial.addControl(this); in MotionTrack()
143 public MotionTrack(Spatial spatial, MotionPath path, LoopMode loopMode) { in MotionTrack() argument
145 this.spatial = spatial; in MotionTrack()
146 spatial.addControl(this); in MotionTrack()
[all …]
/external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/control/
DCharacterControl.java28 protected Spatial spatial; field in CharacterControl
58 return spatial.getLocalTranslation(); in getSpatialTranslation()
60 return spatial.getWorldTranslation(); in getSpatialTranslation()
63 public Control cloneForSpatial(Spatial spatial) { in cloneForSpatial() argument
77 control.setSpatial(spatial); in cloneForSpatial()
81 public void setSpatial(Spatial spatial) { in setSpatial() argument
82 if (getUserObject() == null || getUserObject() == this.spatial) { in setSpatial()
83 setUserObject(spatial); in setSpatial()
85 this.spatial = spatial; in setSpatial()
86 if (spatial == null) { in setSpatial()
[all …]
DRigidBodyControl.java35 protected Spatial spatial; field in RigidBodyControl
65 public Control cloneForSpatial(Spatial spatial) { in cloneForSpatial() argument
89 control.setSpatial(spatial); in cloneForSpatial()
93 public void setSpatial(Spatial spatial) { in setSpatial() argument
94 if (getUserObject() == null || getUserObject() == this.spatial) { in setSpatial()
95 setUserObject(spatial); in setSpatial()
97 this.spatial = spatial; in setSpatial()
98 if (spatial == null) { in setSpatial()
99 if (getUserObject() == spatial) { in setSpatial()
102 spatial = null; in setSpatial()
[all …]
DGhostControl.java29 protected Spatial spatial; field in GhostControl
57 return spatial.getLocalTranslation(); in getSpatialTranslation()
59 return spatial.getWorldTranslation(); in getSpatialTranslation()
64 return spatial.getLocalRotation(); in getSpatialRotation()
66 return spatial.getWorldRotation(); in getSpatialRotation()
69 public Control cloneForSpatial(Spatial spatial) { in cloneForSpatial() argument
79 control.setSpatial(spatial); in cloneForSpatial()
83 public void setSpatial(Spatial spatial) { in setSpatial() argument
84 if (getUserObject() == null || getUserObject() == this.spatial) { in setSpatial()
85 setUserObject(spatial); in setSpatial()
[all …]
DVehicleControl.java33 protected Spatial spatial; field in VehicleControl
72 return spatial.getLocalTranslation(); in getSpatialTranslation()
74 return spatial.getWorldTranslation(); in getSpatialTranslation()
79 return spatial.getLocalRotation(); in getSpatialRotation()
81 return spatial.getWorldRotation(); in getSpatialRotation()
84 public Control cloneForSpatial(Spatial spatial) { in cloneForSpatial() argument
121 if (spatial instanceof Node) { in cloneForSpatial()
122 Node node = (Node) spatial; in cloneForSpatial()
131 control.setSpatial(spatial); in cloneForSpatial()
135 public void setSpatial(Spatial spatial) { in setSpatial() argument
[all …]
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/infos/
DRigidBodyMotionState.java68 public synchronized boolean applyTransform(Spatial spatial) { in applyTransform() argument
69 Vector3f localLocation = spatial.getLocalTranslation(); in applyTransform()
70 Quaternion localRotationQuat = spatial.getLocalRotation(); in applyTransform()
75 if (!applyPhysicsLocal && spatial.getParent() != null) { in applyTransform()
76 localLocation.subtractLocal(spatial.getParent().getWorldTranslation()); in applyTransform()
77 localLocation.divideLocal(spatial.getParent().getWorldScale()); in applyTransform()
78 …tmp_inverseWorldRotation.set(spatial.getParent().getWorldRotation()).inverseLocal().multLocal(loca… in applyTransform()
83 spatial.setLocalTranslation(localLocation); in applyTransform()
84 spatial.setLocalRotation(localRotationQuat); in applyTransform()
86 spatial.setLocalTranslation(localLocation); in applyTransform()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/
DAbstractControl.java52 protected Spatial spatial; field in AbstractControl
57 public void setSpatial(Spatial spatial) { in setSpatial() argument
58 if (this.spatial != null && spatial != null) { in setSpatial()
61 this.spatial = spatial; in setSpatial()
65 return spatial; in getSpatial()
103 oc.write(spatial, "spatial", null); in write()
109 spatial = (Spatial) ic.readSavable("spatial", null); in read()
DCameraControl.java109 if (spatial != null && camera != null) { in controlUpdate()
112 camera.setLocation(spatial.getWorldTranslation()); in controlUpdate()
113 camera.setRotation(spatial.getWorldRotation()); in controlUpdate()
120 …Vector3f vecDiff = vars.vect1.set(camera.getLocation()).subtractLocal(spatial.getWorldTranslation(… in controlUpdate()
121 spatial.setLocalTranslation(vecDiff.addLocal(spatial.getLocalTranslation())); in controlUpdate()
124 …uaternion worldDiff = vars.quat1.set(camera.getRotation()).subtractLocal(spatial.getWorldRotation(… in controlUpdate()
125 spatial.setLocalRotation(worldDiff.addLocal(spatial.getLocalRotation())); in controlUpdate()
DBillboardControl.java90 public Control cloneForSpatial(Spatial spatial) { in cloneForSpatial() argument
93 control.setSpatial(spatial); in cloneForSpatial()
109 spatial.updateGeometricState(); in fixRefreshFlags()
112 Spatial rootNode = spatial; in fixRefreshFlags()
150 spatial.getWorldTranslation()); in rotateCameraAligned()
178 spatial.setLocalRotation(orient); in rotateCameraAligned()
195 Node parent = spatial.getParent(); in rotateScreenAligned()
201 spatial.setLocalRotation(rot); in rotateScreenAligned()
216 spatial.getWorldTranslation()); in rotateAxial()
217 spatial.getParent().getWorldRotation().mult(look, left); // coopt left for our own in rotateAxial()
[all …]
DLightControl.java110 if (spatial != null && light != null) { in controlUpdate()
124 ((PointLight) light).setPosition(spatial.getWorldTranslation()); in spatialTolight()
129 …((DirectionalLight) light).setDirection(vars.vect1.set(spatial.getWorldTranslation()).multLocal(-1… in spatialTolight()
146 …Vector3f vecDiff = vars.vect1.set(pLight.getPosition()).subtractLocal(spatial.getWorldTranslation(… in lightToSpatial()
147 spatial.setLocalTranslation(vecDiff.addLocal(spatial.getLocalTranslation())); in lightToSpatial()
153 Vector3f vecDiff = vars.vect1.subtractLocal(spatial.getWorldTranslation()); in lightToSpatial()
154 spatial.setLocalTranslation(vecDiff.addLocal(spatial.getLocalTranslation())); in lightToSpatial()
DLodControl.java121 public void setSpatial(Spatial spatial){ in setSpatial() argument
122 if (!(spatial instanceof Geometry)) in setSpatial()
125 super.setSpatial(spatial); in setSpatial()
126 Geometry geom = (Geometry) spatial; in setSpatial()
134 public Control cloneForSpatial(Spatial spatial) { in cloneForSpatial() argument
151 BoundingVolume bv = spatial.getWorldBound(); in controlRender()
181 spatial.setLodLevel(level); in controlRender()
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/objects/infos/
DRigidBodyMotionState.java105 public synchronized boolean applyTransform(Spatial spatial) { in applyTransform() argument
109 if (!applyPhysicsLocal && spatial.getParent() != null) { in applyTransform()
110 … localLocation.set(worldLocation).subtractLocal(spatial.getParent().getWorldTranslation()); in applyTransform()
111 localLocation.divideLocal(spatial.getParent().getWorldScale()); in applyTransform()
112 …tmp_inverseWorldRotation.set(spatial.getParent().getWorldRotation()).inverseLocal().multLocal(loca… in applyTransform()
115 …tmp_inverseWorldRotation.set(spatial.getParent().getWorldRotation()).inverseLocal().mult(localRota… in applyTransform()
117 spatial.setLocalTranslation(localLocation); in applyTransform()
118 spatial.setLocalRotation(localRotationQuat); in applyTransform()
120 spatial.setLocalTranslation(worldLocation); in applyTransform()
121 spatial.setLocalRotation(worldRotationQuat); in applyTransform()
/external/jmonkeyengine/engine/src/test/jme3test/bullet/
DPhysicsHoverControl.java57 protected Spatial spatial; field in PhysicsHoverControl
97 public Control cloneForSpatial(Spatial spatial) { in cloneForSpatial() argument
101 public void setSpatial(Spatial spatial) { in setSpatial() argument
102 this.spatial = spatial; in setSpatial()
103 setUserObject(spatial); in setSpatial()
104 if (spatial == null) { in setSpatial()
107 setPhysicsLocation(spatial.getWorldTranslation()); in setSpatial()
108 setPhysicsRotation(spatial.getWorldRotation().toRotationMatrix()); in setSpatial()
173 if (enabled && spatial != null) { in update()
174 getMotionState().applyTransform(spatial); in update()
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/constraints/
DFeature.java27 protected Spatial spatial; field in Feature
63 public Feature(Spatial spatial, Space space, Long oma, BlenderContext blenderContext) { in Feature() argument
93 this.spatial = (Spatial) owner; in update()
112 if (spatial != null) { in getObject()
113 return spatial; in getObject()
123 if (spatial != null) { in getTransform()
153 return spatial.getWorldTransform(); in getTransform()
189 if (spatial != null) { in applyTransform()
192 Transform ownerLocalTransform = spatial.getLocalTransform(); in applyTransform()
210 spatial.setLocalTransform(transform); in applyTransform()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/animation/
DAnimControl.java110 public Control cloneForSpatial(Spatial spatial) { in cloneForSpatial() argument
113 clone.spatial = spatial; in cloneForSpatial()
277 public void setSpatial(Spatial spatial) { in setSpatial() argument
278 if (spatial == null && skeletonControl != null) { in setSpatial()
279 this.spatial.removeControl(skeletonControl); in setSpatial()
282 super.setSpatial(spatial); in setSpatial()
285 if (spatial != null && skeletonControl != null) { in setSpatial()
286 spatial.addControl(skeletonControl); in setSpatial()
373 spatial.addControl(skeletonControl); in read()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
DNormalRecalcControl.java70 public Control cloneForSpatial(Spatial spatial) { in cloneForSpatial() argument
72 control.setSpatial(spatial); in cloneForSpatial()
78 public void setSpatial(Spatial spatial) { in setSpatial() argument
79 super.setSpatial(spatial); in setSpatial()
80 if (spatial instanceof TerrainQuad) in setSpatial()
81 this.terrain = (TerrainQuad)spatial; in setSpatial()
DTerrainLodControl.java133 public Control cloneForSpatial(Spatial spatial) { in cloneForSpatial() argument
134 if (spatial instanceof Terrain) { in cloneForSpatial()
141 TerrainLodControl cloned = new TerrainLodControl((Terrain) spatial, cameraClone); in cloneForSpatial()
163 public void setSpatial(Spatial spatial) { in setSpatial() argument
164 super.setSpatial(spatial); in setSpatial()
165 if (spatial instanceof Terrain) { in setSpatial()
166 this.terrain = (Terrain) spatial; in setSpatial()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/
DSceneGraphVisitorAdapter.java28 public final void visit(Spatial spatial) { in visit() argument
29 if (spatial instanceof Geometry) { in visit()
30 visit((Geometry)spatial); in visit()
32 visit((Node)spatial); in visit()
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/collision/
DPhysicsCollisionObject.java214 Spatial spatial = getDebugShape(); in attachDebugShape() local
215 this.debugShape = spatial; in attachDebugShape()
227 Spatial spatial = DebugShapeFactory.getDebugShape(collisionShape); in getDebugShape() local
228 if (spatial == null) { in getDebugShape()
231 if (spatial instanceof Node) { in getDebugShape()
232 List<Spatial> children = ((Node) spatial).getChildren(); in getDebugShape()
240 Geometry geom = ((Geometry) spatial); in getDebugShape()
244 spatial.setCullHint(Spatial.CullHint.Never); in getDebugShape()
245 return spatial; in getDebugShape()
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/
DPhysicsCollisionObject.java234 Spatial spatial = getDebugShape(); in attachDebugShape() local
235 this.debugShape = spatial; in attachDebugShape()
247 Spatial spatial = DebugShapeFactory.getDebugShape(collisionShape); in getDebugShape() local
248 if (spatial == null) { in getDebugShape()
251 if (spatial instanceof Node) { in getDebugShape()
252 List<Spatial> children = ((Node) spatial).getChildren(); in getDebugShape()
260 Geometry geom = ((Geometry) spatial); in getDebugShape()
264 spatial.setCullHint(Spatial.CullHint.Never); in getDebugShape()
265 return spatial; in getDebugShape()
/external/jmonkeyengine/engine/src/test/jme3test/post/
DTestCartoonEdge.java71 public void makeToonish(Spatial spatial){ in makeToonish() argument
72 if (spatial instanceof Node){ in makeToonish()
73 Node n = (Node) spatial; in makeToonish()
76 }else if (spatial instanceof Geometry){ in makeToonish()
77 Geometry g = (Geometry) spatial; in makeToonish()

123