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

Engine.SVehicleWheel


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
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
class SVehicleWheel extends Core.Object
	native;

// INPUT
var()					float	Steer; // degrees

var()					float	DriveForce; // resultant linear driving force at wheel center
var()					float	LongFriction; // maximum linear longitudinal (roll) friction force
var()					float	LatFriction; // maximum linear longitudinal (roll) friction force
var()					float	LongSlip;
var()					float	LatSlip;
var()					float	ChassisTorque; // Torque applied back to the chassis (equal-and-opposite) from this wheel.

var()					float	TrackVel; // Linear velocity of 'track' at this wheel (unreal scale).

// PARAMS
var()					bool	bPoweredWheel;
var()					bool	bHandbrakeWheel;
var()					bool	bTrackWheel; // If this is a track segment instead of a normal wheel.

var()					enum	ESteerType
{
	STEER_Fixed,
	STEER_Steered,
	STEER_Inverted
} SteerType; // How steering affects this wheel.

var()					name	BoneName;
var()					vector	BoneOffset; // Offset from wheel bone to line check point (middle of tyre). NB: Not affected by scale.
var()					float	WheelRadius; // Length of line check. Usually 2x wheel radius.

var()					float	Softness;
var()					float	PenScale;
var()					float	Restitution;
var()					float	Adhesion;
var()					float	WheelInertia;
var()					float	SuspensionTravel;
var()					float   SuspensionOffset;
var()					float	HandbrakeSlipFactor;
var()					float	HandbrakeFrictionFactor;

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.

// Approximations to Pacejka's Magic Formula
var()					InterpCurve		LongFrictionFunc; // Function of SlipVel (ignored if bTrackWheel)
var()					InterpCurve		LatSlipFunc; // Function of SpinVel (or TrackVel is bTrackWheel)

// 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						bool	bWheelOnGround;
var						float	TireLoad; // Load on tire
var						vector	WheelDir; // Wheel 'forward' in world ref frame. Unit length.
var						vector	WheelAxle; // Wheel axle in world ref frame. Unit length.

var						float	SpinVel; // Radians per sec

var						float   SlipAngle; // Angle between wheel facing direction and wheel travelling direction. In degrees.

var						float	SlipVel;   // Difference in linear velocity between ground and wheel at contact.

var						float	SuspensionPosition; // Output vertical position of wheel
var						float	CurrentRotation;


// Used internally for Karma stuff - DO NOT CHANGE!
var		transient const int		KContact;  

defaultproperties
{
	HandbrakeSlipFactor=1.0
	HandbrakeFrictionFactor=1.0
	Softness=0.05
	PenScale=1.0
	WheelInertia=1.0
	SteerType=ST_Fixed
	SuspensionTravel=50.0
	WheelRadius=35
	SupportBoneAxis=AXIS_X
}

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