public class PhysicsUtils extends Object
| Constructor and Description |
|---|
PhysicsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static float |
acceleration(float vel1,
float vel2,
float dt) |
static void |
acceleration(com.jme3.math.Vector3f vel1,
com.jme3.math.Vector3f vel2,
float dt,
com.jme3.math.Vector3f result) |
static void |
addAllPhysicsControls(com.jme3.scene.Spatial spatial,
com.jme3.bullet.BulletAppState bulletAppState) |
static void |
angularSpeed(com.jme3.math.Quaternion q1,
com.jme3.math.Quaternion q2,
float dt,
com.jme3.math.Vector3f angularSpeed) |
static void |
setHighPhysicsPrecision(com.jme3.scene.Spatial spatial) |
static float |
speed(com.jme3.math.Vector3f pos1,
com.jme3.math.Vector3f pos2,
float dt) |
static void |
speed(com.jme3.math.Vector3f pos1,
com.jme3.math.Vector3f pos2,
float dt,
com.jme3.math.Vector3f result) |
static void |
updateLocationAndRotation(com.jme3.scene.Spatial spatial) |
public static void setHighPhysicsPrecision(com.jme3.scene.Spatial spatial)
public static void addAllPhysicsControls(com.jme3.scene.Spatial spatial,
com.jme3.bullet.BulletAppState bulletAppState)
public static void updateLocationAndRotation(com.jme3.scene.Spatial spatial)
public static void speed(com.jme3.math.Vector3f pos1,
com.jme3.math.Vector3f pos2,
float dt,
com.jme3.math.Vector3f result)
public static float speed(com.jme3.math.Vector3f pos1,
com.jme3.math.Vector3f pos2,
float dt)
public static void acceleration(com.jme3.math.Vector3f vel1,
com.jme3.math.Vector3f vel2,
float dt,
com.jme3.math.Vector3f result)
public static float acceleration(float vel1,
float vel2,
float dt)
public static void angularSpeed(com.jme3.math.Quaternion q1,
com.jme3.math.Quaternion q2,
float dt,
com.jme3.math.Vector3f angularSpeed)
Copyright © 2017. All Rights Reserved.