com.jme3.scene.Geometry.updateLogicalState()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(127)

本文整理了Java中com.jme3.scene.Geometry.updateLogicalState()方法的一些代码示例,展示了Geometry.updateLogicalState()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Geometry.updateLogicalState()方法的具体详情如下:
包路径:com.jme3.scene.Geometry
类名称:Geometry
方法名:updateLogicalState

Geometry.updateLogicalState介绍

暂无

代码示例

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

@Override
public void simpleUpdate(float tpf){
  Quaternion q = new Quaternion();
  angle += tpf;
  angle %= FastMath.TWO_PI;
  q.fromAngles(angle, 0, angle);
  offBox.setLocalRotation(q);
  offBox.updateLogicalState(tpf);
  offBox.updateGeometricState();
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

@Override
  public void simpleUpdate(float tpf){
    Quaternion q = new Quaternion();
     angle += tpf;
    angle %= FastMath.TWO_PI;
    q.fromAngles(angle, 0, angle);

    offBox.setLocalRotation(q);
    offBox.updateLogicalState(tpf);
    offBox.updateGeometricState();
  }
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

@Override
public void simpleUpdate(float tpf){
  Quaternion q = new Quaternion();
  
  if (offView.isEnabled()) {
    angle += tpf;
    angle %= FastMath.TWO_PI;
    q.fromAngles(angle, 0, angle);
    
    offBox.setLocalRotation(q);
    offBox.updateLogicalState(tpf);
    offBox.updateGeometricState();
  }
}

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

@Override
public void update(){
  super.update();
  // do some animation
  float tpf = timer.getTimePerFrame();
  boxGeom.rotate(tpf * 2, tpf * 4, tpf * 3);
  // dont forget to update the scenes
  boxGeom.updateLogicalState(tpf);
  boxGeom.updateGeometricState();
  // render the viewports
  renderManager.render(tpf, context.isRenderable());
}

代码示例来源:origin: us.ihmc/ihmc-perception

@Override
public void simpleUpdate(float tpf){
  Quaternion q = new Quaternion();
  angle += tpf;
  angle %= FastMath.TWO_PI;
  q.fromAngles(angle, 0, angle);
  offBox.setLocalRotation(q);
  offBox.updateLogicalState(tpf);
  offBox.updateGeometricState();
}

代码示例来源:origin: us.ihmc/IHMCPerception

@Override
public void simpleUpdate(float tpf){
  Quaternion q = new Quaternion();
  angle += tpf;
  angle %= FastMath.TWO_PI;
  q.fromAngles(angle, 0, angle);
  offBox.setLocalRotation(q);
  offBox.updateLogicalState(tpf);
  offBox.updateGeometricState();
}

相关文章