📄 guns.java
字号:
package myGame.weapons;
public class Guns {
/**
* 当前相对于Y轴(垂直轴)转向的角度
*/
public float m_currentRotYTurnAngle = 75;
/**
* 子弹当前的速度 合成的速度
*/
public float m_carSpeed = 0;
/**
* 上一桢的速度
*/
public float m_lastCarSpeed = 0;
/**
* 最大速度
*/
public static float G_MAX_SPEED = 4f;
/**
* 模型半径
*/
public static float G_CAR_SPHERE_RADIOUS = 6;
/**
* 当前所在的路块的编号
*/
public int m_currentFieldId = 0;
/**
* 汽车碰撞前的位置
*/
public float[] m_preCarPosition;
public double m_camSine;
public double m_camCosine;
/**
* 每次转向的偏转量
*/
public float delta_turnangle = 4;
/**
* 摩擦力的速度
*/
public float m_acSpeed = 0.01f;
public float mass = 0.1f;
/**
* 是否发生碰撞
*/
public boolean m_hitHappens;
/**
* 碰撞过程中的速度
*/
public float m_hitSpeed;
/**
* 碰撞时的角度
*/
public float m_hitRotY;
/**
* 前进时的速度系数
*/
public float m_scaleMoveForward = -1.2f;
/**
* 倒车时的系数
*/
public float m_scaleMoveBackward = -1.0f;
public Guns() {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -