Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.HavokVehicleWheel


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
class HavokVehicleWheel extends Core.Object
#if IG_TRIBES3 // Alex:
	editinlinenew
#endif
	native;

// PARAMS
var()	float	SuspensionStrength; // 50
var()	float	SuspensionDampingCompression; // 3
var()	float	SuspensionDampingRelaxation; //3
var()	float	MaxBrakingTorque;//1500
var()	bool	HasHandbrake; // connected to handbrake?
var()   float   WheelTorqueRatio; // 0== not driven, 1 == takes all the torque, so make sure that all the wheels add up to about 1 and that opposing wheels are the same if you want to drive straight!
var()	float	WheelRadius; // unreal units
var()	float	WheelWidth; // unreal units
var()	int		WheelAxleNumber; // 0 or 1 usually (specifies a grouping of wheels)
var()	float	WheelMass; //10
var()	float	WheelFriction; // 1.25
var()	float	WheelViscosityFriction; // 0.05

var()	enum	EHavokSteerType
{
	HK_STEER_Fixed,
	HK_STEER_Steered,
} SteerType; // How steering affects this wheel.

var()					name	BoneName;
var()					vector	BoneOffset; // Offset from wheel bone to the middle of tyre. NB: Not affected by scale.

var()					float	SuspensionTravel;
var()					float   SuspensionOffset;
var()					name	SupportBoneName; // Name of strut etc. that will be rotated around local X as wheel goes up and down.
var()					EAxis	SupportBoneAxis; // Local axis to rotate support bone around.

// OUTPUT
// Calculated on startup
var						vector	WheelPosition; // Wheel center in actor ref frame. Calculated using BoneOffset above.
var						float	SupportPivotDistance; // If a SupportBoneName is specified, this is the distance used to calculate the anglular displacement.

// Calculated each frame
var						float	SuspensionPosition; // Output vertical position of wheel
var						float	CurrentRotation;

defaultproperties
{
	SteerType=HK_STEER_Fixed
	SuspensionTravel=50.0
	WheelRadius=35
	WheelTorqueRatio=0.25 // for 4 wheels this gives all wheels the same. set to 0 for no power to this wheel
	WheelWidth=30
	SupportBoneAxis=AXIS_X
	BoneOffset=(X=0,Y=0,Z=0)
	WheelAxleNumber = 0
	WheelMass=10
	WheelFriction=1.25
	WheelViscosityFriction=0.05
	SuspensionStrength=50
	SuspensionDampingCompression=3
	SuspensionDampingRelaxation=3
	MaxBrakingTorque=1500
	HasHandbrake=false
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: ne 5.9.2004 16:01:22.000 - Creation time: st 23.5.2018 00:10:44.132 - Created with UnCodeX