本文整理汇总了Java中com.bulletphysics.dynamics.vehicle.VehicleTuning类的典型用法代码示例。如果您正苦于以下问题:Java VehicleTuning类的具体用法?Java VehicleTuning怎么用?Java VehicleTuning使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
VehicleTuning类属于com.bulletphysics.dynamics.vehicle包,在下文中一共展示了VehicleTuning类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: read
import com.bulletphysics.dynamics.vehicle.VehicleTuning; //导入依赖的package包/类
@Override
public void read(JmeImporter im) throws IOException {
InputCapsule capsule = im.getCapsule(this);
tuning = new VehicleTuning();
tuning.frictionSlip = capsule.readFloat("frictionSlip", 10.5f);
tuning.maxSuspensionTravelCm = capsule.readFloat("maxSuspensionTravelCm", 500f);
tuning.maxSuspensionForce = capsule.readFloat("maxSuspensionForce", 6000f);
tuning.suspensionCompression = capsule.readFloat("suspensionCompression", 0.83f);
tuning.suspensionDamping = capsule.readFloat("suspensionDamping", 0.88f);
tuning.suspensionStiffness = capsule.readFloat("suspensionStiffness", 5.88f);
wheels = capsule.readSavableArrayList("wheelsList", new ArrayList<VehicleWheel>());
motionState.setVehicle(this);
super.read(im);
}