Home
last modified time | relevance | path

Searched refs:tpf (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/external/jmonkeyengine/engine/src/lwjgl/com/jme3/system/lwjgl/
DLwjglSmoothingTimer.java63 private long[] tpf; field in LwjglSmoothingTimer
98 tpf = new long[TIMER_SMOOTHNESS]; in reset()
103 for ( int i = tpf.length; --i >= 0; ) { in reset()
104 tpf[i] = -1; in reset()
159 tpf[smoothIndex] = frameDiff; in update()
162 smoothIndex = tpf.length - 1; in update()
168 for ( int i = tpf.length; --i >= 0; ) { in update()
169 if ( tpf[i] != -1 ) { in update()
170 lastTPF += tpf[i]; in update()
174 if (smoothCount == tpf.length) in update()
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/app/
DTestBareBonesApp.java73 float tpf = timer.getTimePerFrame(); in update() local
74 boxGeom.rotate(tpf * 2, tpf * 4, tpf * 3); in update()
77 boxGeom.updateLogicalState(tpf); in update()
81 renderManager.render(tpf, context.isRenderable()); in update()
/external/jmonkeyengine/engine/src/test/jme3test/input/
DTestChaseCamera.java119 public void onAnalog(String name, float value, float tpf) { in onAnalog() argument
121 teaGeom.move(0, 0, -5 * tpf); in onAnalog()
124 teaGeom.move(0, 0, 5 * tpf); in onAnalog()
127 teaGeom.move(5 * tpf, 0, 0); in onAnalog()
130 teaGeom.move(-5 * tpf, 0, 0); in onAnalog()
136 public void onAction(String name, boolean keyPressed, float tpf) { in onAction() argument
144 public void simpleUpdate(float tpf) { in simpleUpdate() argument
145 super.simpleUpdate(tpf); in simpleUpdate()
DTestCameraNode.java113 public void onAnalog(String name, float value, float tpf) { in onAnalog() argument
117 direction.multLocal(5 * tpf); in onAnalog()
121 direction.multLocal(-5 * tpf); in onAnalog()
125 direction.crossLocal(Vector3f.UNIT_Y).multLocal(5 * tpf); in onAnalog()
129 direction.crossLocal(Vector3f.UNIT_Y).multLocal(-5 * tpf); in onAnalog()
133 teaNode.rotate(0, 5 * tpf, 0); in onAnalog()
136 teaNode.rotate(0, -5 * tpf, 0); in onAnalog()
141 public void onAction(String name, boolean keyPressed, float tpf) { in onAction() argument
/external/jmonkeyengine/engine/src/core/com/jme3/app/
DSimpleApplication.java84 public void onAction(String name, boolean value, float tpf) { in onAction() argument
230 float tpf = timer.getTimePerFrame() * speed; in update() local
233 stateManager.update(tpf); in update()
236 simpleUpdate(tpf); in update()
238 rootNode.updateLogicalState(tpf); in update()
239 guiNode.updateLogicalState(tpf); in update()
246 renderManager.render(tpf, context.isRenderable()); in update()
265 public void simpleUpdate(float tpf) { in simpleUpdate() argument
/external/jmonkeyengine/engine/src/core/com/jme3/system/
DNanoTimer.java48 private float tpf; field in NanoTimer
79 return tpf; in getTimePerFrame()
83 tpf = (getTime() - previousTime) * (1.0f / TIMER_RESOLUTION); in update()
84 fps = 1.0f / tpf; in update()
/external/jmonkeyengine/engine/src/test/jme3test/collision/
DTestTriangleCollision.java95 public void onAnalog(String name, float value, float tpf) {
97 geom1.move(2 * tpf, 0, 0);
101 geom1.move(-2 * tpf, 0, 0);
105 geom1.move(0, 2 * tpf, 0);
109 geom1.move(0, -2 * tpf, 0);
115 public void simpleUpdate(float tpf) { in simpleUpdate() argument
/external/jmonkeyengine/engine/src/android/com/jme3/system/android/
DAndroidTimer.java49 private float tpf; field in AndroidTimer
82 return tpf; in getTimePerFrame()
86 tpf = (getTime() - previousTime) * (1.0f / TIMER_RESOLUTION); in update()
87 fps = 1.0f / tpf; in update()
/external/jmonkeyengine/engine/src/core/com/jme3/effect/
DParticleEmitter.java137 public void update(float tpf) { in update() argument
138 parentEmitter.updateFromControl(tpf); in update()
944 private void updateParticle(Particle p, float tpf, Vector3f min, Vector3f max){ in updateParticle() argument
946 p.velocity.x -= gravity.x * tpf; in updateParticle()
947 p.velocity.y -= gravity.y * tpf; in updateParticle()
948 p.velocity.z -= gravity.z * tpf; in updateParticle()
949 temp.set(p.velocity).multLocal(tpf); in updateParticle()
956 p.angle += p.rotateSpeed * tpf; in updateParticle()
969 private void updateParticleState(float tpf) { in updateParticleState() argument
985 p.life -= tpf; in updateParticleState()
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/model/shape/
DTestBillboard.java98 public void simpleUpdate(float tpf) { in simpleUpdate() argument
99 super.simpleUpdate(tpf); in simpleUpdate()
100 n.rotate(0, tpf, 0); in simpleUpdate()
101 n.move(0.1f*tpf, 0, 0); in simpleUpdate()
102 n2.rotate(0, 0, -tpf); in simpleUpdate()
/external/jmonkeyengine/engine/src/core/com/jme3/input/
DChaseCamera.java154 public void onAction(String name, boolean keyPressed, float tpf) { in onAction() argument
170 public void onAnalog(String name, float value, float tpf) { in onAnalog() argument
323 protected void updateCamera(float tpf) { in updateCamera() argument
390 … trailingLerpFactor = Math.min(trailingLerpFactor + tpf * tpf * trailingSensitivity, 1); in updateCamera()
404 … distanceLerpFactor = Math.min(distanceLerpFactor + (tpf * tpf * chasingSensitivity * 0.05f), 1); in updateCamera()
414 … distanceLerpFactor = Math.min(distanceLerpFactor + (tpf * tpf * zoomSensitivity), 1); in updateCamera()
424 … rotationLerpFactor = Math.min(rotationLerpFactor + tpf * tpf * rotationSensitivity, 1); in updateCamera()
434 … vRotationLerpFactor = Math.min(vRotationLerpFactor + tpf * tpf * rotationSensitivity, 1); in updateCamera()
543 public void update(float tpf) { in update() argument
544 updateCamera(tpf); in update()
/external/jmonkeyengine/engine/src/test/jme3test/games/
DCubeField.java143 public void simpleUpdate(float tpf) { in simpleUpdate() argument
144 camTakeOver(tpf); in simpleUpdate()
146 gameLogic(tpf); in simpleUpdate()
154 private void camTakeOver(float tpf) { in camTakeOver() argument
161 camAngle *= FastMath.pow(.99f, fpsRate * tpf); in camTakeOver()
248 private void gameLogic(float tpf){ in gameLogic() argument
262 speed+=.000001f*tpf*fpsRate; in gameLogic()
265 player.move(speed * tpf * fpsRate, 0, 0); in gameLogic()
298 Score += fpsRate * tpf; in gameLogic()
311 public void onAnalog(String binding, float value, float tpf) { in onAnalog() argument
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/model/anim/
DTestAnimBlendBug.java63 public void onAction(String name, boolean value, float tpf) { in onAction() argument
73 public void onPreUpdate(float tpf) { in onPreUpdate() argument
76 public void onPostUpdate(float tpf) { in onPostUpdate() argument
80 public void simpleUpdate(float tpf) { in simpleUpdate() argument
83 blendingAnimationLock -= tpf; in simpleUpdate()
/external/jmonkeyengine/engine/src/test/jme3test/app/state/
DRootNodeState.java47 public void update(float tpf) { in update() argument
48 super.update(tpf); in update()
50 rootNode.updateLogicalState(tpf); in update()
DTestAppStates.java85 float tpf = timer.getTimePerFrame(); in update() local
87 stateManager.update(tpf); in update()
91 renderManager.render(tpf, context.isRenderable()); in update()
/external/jmonkeyengine/engine/src/test/jme3test/audio/
DTestDoppler.java76 public void simpleUpdate(float tpf){ in simpleUpdate() argument
83 x += dx * tpf * 0.05f; in simpleUpdate()
84 z += dz * tpf * 0.05f; in simpleUpdate()
86 angle += tpf * rate; in simpleUpdate()
/external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/
DBulletAppState.java34 protected float tpf; field in BulletAppState
98 pSpace.update(tpf * getSpeed());
168 public void update(float tpf) { in update() argument
175 this.tpf = tpf; in update()
185 pSpace.update(active ? tpf * speed : 0); in render()
/external/jmonkeyengine/engine/src/core/com/jme3/animation/
DAnimationFactory.java124 protected float tpf; field in AnimationFactory
168 tpf = 1 / (float) fps; in AnimationFactory()
188 addKeyFrameTransform((int) (time / tpf), transform); in addTimeTransform()
208 addKeyFrameTranslation((int) (time / tpf), translation); in addTimeTranslation()
230 addKeyFrameRotation((int) (time / tpf), rotation); in addTimeRotation()
258 addKeyFrameRotationAngles((int) (time / tpf), x, y, z); in addTimeRotationAngles()
315 addKeyFrameScale((int) (time / tpf), scale); in addTimeScale()
406 times[i] = i * tpf; in interpolateTime()
/external/jmonkeyengine/engine/src/test/jme3test/bullet/
DTestRagdollCharacter.java183 public void onAction(String binding, boolean value, float tpf) { in onAction() argument
217 public void simpleUpdate(float tpf) { in simpleUpdate() argument
219 model.move(model.getLocalRotation().multLocal(new Vector3f(0,0,1)).multLocal(tpf)); in simpleUpdate()
221 model.move(model.getLocalRotation().multLocal(new Vector3f(0,0,1)).multLocal(-tpf)); in simpleUpdate()
223 model.rotate(0, tpf, 0); in simpleUpdate()
225 model.rotate(0, -tpf, 0); in simpleUpdate()
/external/jmonkeyengine/engine/src/android/jme3test/android/
DSimpleTexturedTest.java140 public void simpleUpdate(float tpf) { in simpleUpdate() argument
146 spheresContainer.rotate(0.2f * tpf, 0.4f * tpf, 0.8f * tpf); in simpleUpdate()
DTestMovingParticle.java84 public void onAction(String name, boolean isPressed, float tpf) { in simpleInitApp()
95 public void simpleUpdate(float tpf) { in simpleUpdate() argument
96 angle += tpf; in simpleUpdate()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/
DAbstractControl.java79 protected abstract void controlUpdate(float tpf); in controlUpdate() argument
86 public void update(float tpf) { in update() argument
90 controlUpdate(tpf); in update()
/external/jmonkeyengine/engine/src/test/jme3test/post/
DTestRenderToTexture.java126 public void simpleUpdate(float tpf){ in simpleUpdate() argument
130 angle += tpf; in simpleUpdate()
135 offBox.updateLogicalState(tpf); in simpleUpdate()
141 public void onAction(String name, boolean isPressed, float tpf) { in onAction() argument
/external/jmonkeyengine/engine/src/test/jme3test/renderer/
DTestParallelProjection.java73 public void onAnalog(String name, float value, float tpf) { in onAnalog() argument
76 frustumSize += 0.3f * tpf; in onAnalog()
78 frustumSize -= 0.3f * tpf; in onAnalog()
/external/jmonkeyengine/engine/src/test/jme3test/effect/
DTestMovingParticle.java76 public void onAction(String name, boolean isPressed, float tpf) { in simpleInitApp()
87 public void simpleUpdate(float tpf) { in simpleUpdate() argument
88 angle += tpf; in simpleUpdate()

12345678910>>...12