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

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

Best Java code snippets using kendzi.jogl.camera.SimpleMoveAnimator.calcHorizontallySpeed (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.cameraSimpleMoveAnimatorcalcHorizontallySpeed

Javadoc

Calculate horizontal rotation speed.

Popular methods of SimpleMoveAnimator

  • getPoint
  • updateState
  • calcForwardSpeed
    Calculate forward speed.
  • calcSideSpeed
    Calculate side 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

  • Finding current android device location
  • getApplicationContext (Context)
  • setContentView (Activity)
  • addToBackStack (FragmentTransaction)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • From CI to AI: The AI layer in your organization
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