|
以dc中m1a1和m-1974为例,他们各自的ai设置里显示他们各自的速度分别为15米/秒和12米/秒,他们各自的Physics.con中的Engine的部分为
ObjectTemplate.create Engine M1A1Engine
ObjectTemplate.setNetworkableInfo M1A1EngineInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/M1A1Engine.ssc
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate M1A1TrackL
ObjectTemplate.setPosition -1.35/-.1/0.2
ObjectTemplate.addTemplate M1A1TrackR
ObjectTemplate.setPosition 1.39/-.1/0.2
rem -------------------------------------
ObjectTemplate.setMinRotation -1/0/-1
ObjectTemplate.setMaxRotation 1/0/1
ObjectTemplate.setMaxSpeed 4/0/20
ObjectTemplate.setAcceleration 4/0/20
ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setInputToRoll c_PIThrottle
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setEngineType c_ETTank
ObjectTemplate.setTorque 10
ObjectTemplate.setDifferential 4
ObjectTemplate.setNumberOfGears 5
ObjectTemplate.setGearUp 0.95
ObjectTemplate.setGearDown 0.45
ObjectTemplate.setGearChangeTime 0.05
和
ObjectTemplate.create Engine M-1974Engine
ObjectTemplate.setNetworkableInfo M-1974EngineInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/M-1974Engine.ssc
ObjectTemplate.hasMobilePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate M-1974_TrackL
rem ObjectTemplate.setPosition -0.3/-0.799/0
ObjectTemplate.setPosition -0.18/-0.799/0
ObjectTemplate.addTemplate M-1974_TrackR
ObjectTemplate.setPosition 0.38/-0.799/0
rem -------------------------------------
ObjectTemplate.setMinRotation -1/0/-1
ObjectTemplate.setMaxRotation 1/0/1
ObjectTemplate.setMaxSpeed 1/0/10
ObjectTemplate.setAcceleration 1/0/10
ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setInputToRoll c_PIThrottle
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setEngineType c_ETTank
ObjectTemplate.setTorque 5
ObjectTemplate.setDifferential 3.5
ObjectTemplate.setNumberOfGears 5
ObjectTemplate.setGearUp 0.95
ObjectTemplate.setGearDown 0.45
ObjectTemplate.setGearChangeTime 0.05
速度的设置应该就是黑体的部分,可是他们是怎样确定了各自的15米/秒和12米/秒的,我百思不解,还是在其他的部分定义的,望知道的高手指教, :bujie |
|