Example #1
0
  /**
   * Sets the entity's position.
   *
   * @param rhs
   */
  public final void setPosition(Vector3 rhs) {
    m_pos.m_x = rhs.m_x;
    m_pos.m_y = rhs.m_y;
    m_pos.m_z = rhs.m_z;

    updateWorldBounds();
  }
Example #2
0
  /**
   * Translates the entity by the specified vector.
   *
   * @param dx
   * @param dy
   * @param dz
   */
  public final void translate(float dx, float dy, float dz) {
    m_pos.m_x += dx;
    m_pos.m_y += dy;
    m_pos.m_z += dz;

    updateWorldBounds();
  }
Example #3
0
  /**
   * Sets the entity's position.
   *
   * @param x
   * @param y
   * @param z
   */
  public final void setPosition(float x, float y, float z) {
    m_pos.m_x = x;
    m_pos.m_y = y;
    m_pos.m_z = z;

    updateWorldBounds();
  }