unity3d的动力学汽车脚本
unction SetEnableUserInput(enableInput)
{
queryUserInput=enableInput;
}
{
queryUserInput=enableInput;
}
//Car physics
//===================================================================
//some whee calculation data
class WheelData{
var rotation = 0.0;
var coll : WheelCollider;
var graphic : Transform;
var maxSteerAngle = 0.0;
var lastSkidMark = -1;
var powered = false;
var handbraked = false;
var originalRotation : Quaternion;
};
上一篇:unity3d初级体会[ 04-28 ]
下一篇:Unity游戏引擎授权比较[ 04-28 ]