com.jme3.scene.shape.Box.updateGeometry()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(120)

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

Box.updateGeometry介绍

暂无

代码示例

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

/**
 * Creates a new box.
 * <p>
 * The box has a center of 0,0,0 and extends in the out from the center by
 * the given amount in <em>each</em> direction. So, for example, a box
 * with extent of 0.5 would be the unit cube.
 *
 * @param x the size of the box along the x axis, in both directions.
 * @param y the size of the box along the y axis, in both directions.
 * @param z the size of the box along the z axis, in both directions.
 */
public Box(float x, float y, float z) {
  super();
  updateGeometry(Vector3f.ZERO, x, y, z);
}

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

/**
 * Constructor instantiates a new <code>Box</code> object.
 * <p>
 * The minimum and maximum point are provided, these two points define the
 * shape and size of the box but not its orientation or position. You should
 * use the {@link com.jme3.scene.Spatial#setLocalTranslation(com.jme3.math.Vector3f) }
 * and {@link com.jme3.scene.Spatial#setLocalRotation(com.jme3.math.Quaternion) }
 * methods to define those properties.
 * 
 * @param min the minimum point that defines the box.
 * @param max the maximum point that defines the box.
 */
public Box(Vector3f min, Vector3f max) {
  super();
  updateGeometry(min, max);
}

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

/**
 * Creates a new box.
 * <p>
 * The box has the given center and extends in the out from the center by
 * the given amount in <em>each</em> direction. So, for example, a box
 * with extent of 0.5 would be the unit cube.
 * 
 * @deprecated Due to constant confusion of geometry centers and the center
 * of the box mesh this method has been deprecated.
 * 
 * @param center the center of the box.
 * @param x the size of the box along the x axis, in both directions.
 * @param y the size of the box along the y axis, in both directions.
 * @param z the size of the box along the z axis, in both directions.
 */
@Deprecated
public Box(Vector3f center, float x, float y, float z) {
  super();
  updateGeometry(center, x, y, z);
}

代码示例来源:origin: info.projectkyoto/mms-engine

/**
 * Creates a new box.
 * <p>
 * The box has the given center and extends in the out from the center by
 * the given amount in <em>each</em> direction. So, for example, a box
 * with extent of 0.5 would be the unit cube.
 * 
 * @param center the center of the box.
 * @param x the size of the box along the x axis, in both directions.
 * @param y the size of the box along the y axis, in both directions.
 * @param z the size of the box along the z axis, in both directions.
 */
public Box(Vector3f center, float x, float y, float z) {
  super();
  updateGeometry(center, x, y, z);
}

代码示例来源:origin: org.jmonkeyengine/jme3-core

/**
 * Constructor instantiates a new <code>Box</code> object.
 * <p>
 * The minimum and maximum point are provided, these two points define the
 * shape and size of the box but not its orientation or position. You should
 * use the {@link com.jme3.scene.Spatial#setLocalTranslation(com.jme3.math.Vector3f) }
 * and {@link com.jme3.scene.Spatial#setLocalRotation(com.jme3.math.Quaternion) }
 * methods to define those properties.
 * 
 * @param min the minimum point that defines the box.
 * @param max the maximum point that defines the box.
 */
public Box(Vector3f min, Vector3f max) {
  super();
  updateGeometry(min, max);
}

代码示例来源:origin: org.jmonkeyengine/jme3-core

/**
 * Creates a new box.
 * <p>
 * The box has a center of 0,0,0 and extends in the out from the center by
 * the given amount in <em>each</em> direction. So, for example, a box
 * with extent of 0.5 would be the unit cube.
 *
 * @param x the size of the box along the x axis, in both directions.
 * @param y the size of the box along the y axis, in both directions.
 * @param z the size of the box along the z axis, in both directions.
 */
public Box(float x, float y, float z) {
  super();
  updateGeometry(Vector3f.ZERO, x, y, z);
}

代码示例来源:origin: info.projectkyoto/mms-engine

/**
 * Creates a new box.
 * <p>
 * The box has a center of 0,0,0 and extends in the out from the center by
 * the given amount in <em>each</em> direction. So, for example, a box
 * with extent of 0.5 would be the unit cube.
 *
 * @param x the size of the box along the x axis, in both directions.
 * @param y the size of the box along the y axis, in both directions.
 * @param z the size of the box along the z axis, in both directions.
 */
public Box(float x, float y, float z) {
  super();
  updateGeometry(Vector3f.ZERO, x, y, z);
}

代码示例来源:origin: info.projectkyoto/mms-engine

/**
 * Constructor instantiates a new <code>Box</code> object.
 * <p>
 * The minimum and maximum point are provided, these two points define the
 * shape and size of the box but not it's orientation or position. You should
 * use the {@link #setLocalTranslation()} and {@link #setLocalRotation()}
 * methods to define those properties.
 * 
 * @param min the minimum point that defines the box.
 * @param max the maximum point that defines the box.
 */
public Box(Vector3f min, Vector3f max) {
  super();
  updateGeometry(min, max);
}

代码示例来源:origin: org.jmonkeyengine/jme3-core

/**
 * Creates a new box.
 * <p>
 * The box has the given center and extends in the out from the center by
 * the given amount in <em>each</em> direction. So, for example, a box
 * with extent of 0.5 would be the unit cube.
 * 
 * @deprecated Due to constant confusion of geometry centers and the center
 * of the box mesh this method has been deprecated.
 * 
 * @param center the center of the box.
 * @param x the size of the box along the x axis, in both directions.
 * @param y the size of the box along the y axis, in both directions.
 * @param z the size of the box along the z axis, in both directions.
 */
@Deprecated
public Box(Vector3f center, float x, float y, float z) {
  super();
  updateGeometry(center, x, y, z);
}

相关文章