Tabnine Logo
SimpleMoveAnimator.calcSideSpeed
Code IndexAdd Tabnine to your IDE (free)

How to use
calcSideSpeed
method
in
kendzi.jogl.camera.SimpleMoveAnimator

Best Java code snippets using kendzi.jogl.camera.SimpleMoveAnimator.calcSideSpeed (Showing top 1 results out of 315)

origin: kendzi/kendzi3d

public void updateState() {
  double time = System.currentTimeMillis() / 1000d;
  double dt = time - lastTime;
  lastTime = time;
  vf = calcForwardSpeed(vf, dt, time);
  vs = calcSideSpeed(vs, dt, time);
  vu = calcUpSpeed(vu, dt, time);
  wh = calcHorizontallySpeed(wh, dt, time);
  Vector3d speed = new Vector3d(vf, vu, vs);
  speed = PointUtil.rotateZ3d(speed, angle.z);
  speed = PointUtil.rotateY3d(speed, angle.y);
  Vector3d dx = speed;
  dx.scale(dt);
  point.add(dx);
  Vector3d angleSpeed = new Vector3d(0, wh, 0);
  Vector3d dOmega = angleSpeed;
  dOmega.scale(dt);
  angle.add(dOmega);
}
kendzi.jogl.cameraSimpleMoveAnimatorcalcSideSpeed

Javadoc

Calculate side speed.

Popular methods of SimpleMoveAnimator

  • getPoint
  • updateState
  • calcForwardSpeed
    Calculate forward speed.
  • calcHorizontallySpeed
    Calculate horizontal rotation speed.
  • calcUpSpeed
    Calculate up/down speed.
  • format
  • formatAngle
  • getAngle
  • moveBackwards
  • moveDown
  • moveForward
  • moveUp
  • moveForward,
  • moveUp,
  • rotateHorizontally,
  • rotateLeft,
  • rotateRight,
  • rotateVertically,
  • setRotateAngle,
  • setSpeed,
  • speedFollower

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • JList (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now