Show / Hide Table of Contents

Class Handling

Represents vehicle handling properties

Inheritance
Object
Handling
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Shared.Vehicles
Assembly: SlipeShared.dll
Syntax
public class Handling

Constructors

| Improve this Doc View Source

Handling()

Declaration
protected Handling()
| Improve this Doc View Source

Handling(SharedVehicle)

Builds vehicle handling from a vehicle

Declaration
public Handling(SharedVehicle vehicle)
Parameters
Type Name Description
SharedVehicle vehicle
| Improve this Doc View Source

Handling(Dictionary<String, Object>)

Build a vehicle handling instance from a raw handling table

Declaration
public Handling(Dictionary<string, dynamic> raw)
Parameters
Type Name Description
Dictionary<String, Object> raw

Fields

| Improve this Doc View Source

animGroup

Declaration
protected int animGroup
Field Value
Type Description
Int32
| Improve this Doc View Source

brakeBias

Declaration
protected float brakeBias
Field Value
Type Description
Single
| Improve this Doc View Source

brakeDeceleration

Declaration
protected float brakeDeceleration
Field Value
Type Description
Single
| Improve this Doc View Source

centerOfMass

Declaration
protected Vector3 centerOfMass
Field Value
Type Description
Vector3
| Improve this Doc View Source

collisionDamageMultiplier

Declaration
protected float collisionDamageMultiplier
Field Value
Type Description
Single
| Improve this Doc View Source

dragCoeff

Declaration
protected float dragCoeff
Field Value
Type Description
Single
| Improve this Doc View Source

driveType

Declaration
protected DriveType driveType
Field Value
Type Description
DriveType
| Improve this Doc View Source

engineAcceleration

Declaration
protected float engineAcceleration
Field Value
Type Description
Single
| Improve this Doc View Source

engineInertia

Declaration
protected float engineInertia
Field Value
Type Description
Single
| Improve this Doc View Source

engineType

Declaration
protected EngineType engineType
Field Value
Type Description
EngineType
| Improve this Doc View Source

handlingFlags

Declaration
protected uint handlingFlags
Field Value
Type Description
UInt32
| Improve this Doc View Source

headLight

Declaration
protected VehicleLightType headLight
Field Value
Type Description
VehicleLightType
| Improve this Doc View Source

mass

Declaration
protected float mass
Field Value
Type Description
Single
| Improve this Doc View Source

maxVelocity

Declaration
protected float maxVelocity
Field Value
Type Description
Single
| Improve this Doc View Source

modelFlags

Declaration
protected uint modelFlags
Field Value
Type Description
UInt32
| Improve this Doc View Source

monetary

Declaration
protected int monetary
Field Value
Type Description
Int32
| Improve this Doc View Source

numberOfGears

Declaration
protected int numberOfGears
Field Value
Type Description
Int32
| Improve this Doc View Source

percentSubmerged

Declaration
protected int percentSubmerged
Field Value
Type Description
Int32
| Improve this Doc View Source

seatOffsetDistance

Declaration
protected float seatOffsetDistance
Field Value
Type Description
Single
| Improve this Doc View Source

steeringLock

Declaration
protected float steeringLock
Field Value
Type Description
Single
| Improve this Doc View Source

suspensionAntiDiveMultiplier

Declaration
protected float suspensionAntiDiveMultiplier
Field Value
Type Description
Single
| Improve this Doc View Source

suspensionDamping

Declaration
protected float suspensionDamping
Field Value
Type Description
Single
| Improve this Doc View Source

suspensionForceLevel

Declaration
protected float suspensionForceLevel
Field Value
Type Description
Single
| Improve this Doc View Source

suspensionFrontRearBias

Declaration
protected float suspensionFrontRearBias
Field Value
Type Description
Single
| Improve this Doc View Source

suspensionHighSpeedDamping

Declaration
protected float suspensionHighSpeedDamping
Field Value
Type Description
Single
| Improve this Doc View Source

suspensionLowerLimit

Declaration
protected float suspensionLowerLimit
Field Value
Type Description
Single
| Improve this Doc View Source

suspensionUpperLimit

Declaration
protected float suspensionUpperLimit
Field Value
Type Description
Single
| Improve this Doc View Source

tailLight

Declaration
protected VehicleLightType tailLight
Field Value
Type Description
VehicleLightType
| Improve this Doc View Source

tractionBias

Declaration
protected float tractionBias
Field Value
Type Description
Single
| Improve this Doc View Source

tractionLoss

Declaration
protected float tractionLoss
Field Value
Type Description
Single
| Improve this Doc View Source

tractionMultiplier

Declaration
protected float tractionMultiplier
Field Value
Type Description
Single
| Improve this Doc View Source

turnMass

Declaration
protected float turnMass
Field Value
Type Description
Single

Properties

| Improve this Doc View Source

AnimationGroup

Refers to an Animation ID number.

Declaration
public int AnimationGroup { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

BrakeBias

Ratio of braking force of front compared to rear; higher values move bias forward.

Declaration
public float BrakeBias { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

BrakeDeceleration

Overall decelerative force.

Declaration
public float BrakeDeceleration { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

CenterOfMass

Distance from the centre of the car in metres for the centre of mass.

Declaration
public Vector3 CenterOfMass { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

CollisionDamageMultiplier

Amount of engine damage vehicle gets from collisions. Higher value means more damage.

Declaration
public float CollisionDamageMultiplier { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

DragCoefficient

Changes resistance to movement.

Declaration
public float DragCoefficient { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

DriveType

Assigns Front, Rear or 4 wheel drive.

Declaration
public DriveType DriveType { get; set; }
Property Value
Type Description
DriveType
| Improve this Doc View Source

EngineAcceleration

Basic rate of acceleration.

Declaration
public float EngineAcceleration { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

EngineInertia

Smooths or sharpens the acceleration curve.

Declaration
public float EngineInertia { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

EngineType

Assigns Petrol, Diesel or Electric engine characteristics.

Declaration
public EngineType EngineType { get; set; }
Property Value
Type Description
EngineType
| Improve this Doc View Source

HandlingFlags

Special performance features.

Declaration
public uint HandlingFlags { get; set; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

HeadLight

Type of head lights of the vehicle.

Declaration
public VehicleLightType HeadLight { get; set; }
Property Value
Type Description
VehicleLightType
| Improve this Doc View Source

Mass

Mass of the vehicle in kilograms.

Declaration
public float Mass { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

MaxVelocity

Limits the top speed.

Declaration
public float MaxVelocity { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

ModelFlags

Special animations features of the which can be enabled or disabled.

Declaration
public uint ModelFlags { get; set; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

Monetary

Used to calculate the Value of property damaged statistic.

Declaration
public int Monetary { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

NumberOfGears

Number of gearchange animations and sound effects to use.

Declaration
public int NumberOfGears { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

PercentSubmerged

Percentage of the vehicle height required to be submerged for the car to float.

Declaration
public int PercentSubmerged { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

SeatOffsetDistance

Distance from door position to seat postion.

Declaration
public float SeatOffsetDistance { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

SteeringLock

Maximum angle of steering in degrees.

Declaration
public float SteeringLock { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

SuspensionAntiDiveMultiplier

Changes the amount of body pitching under braking and acceleration.

Declaration
public float SuspensionAntiDiveMultiplier { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

SuspensionDamping

The inverse negative force of suspension dampeners

Declaration
public float SuspensionDamping { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

SuspensionForceLevel

Force of suspension dampeners

Declaration
public float SuspensionForceLevel { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

SuspensionFrontRearBias

Ratio of suspension force to apply at the front compared to the rear.

Declaration
public float SuspensionFrontRearBias { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

SuspensionHighSpeedDamping

Stiffens the dampening strength as speed increases.

Declaration
public float SuspensionHighSpeedDamping { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

SuspensionLowerLimit

Ride height of vehicle in metres.

Declaration
public float SuspensionLowerLimit { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

SuspensionUpperLimit

Uppermost movement of wheels in metres.

Declaration
public float SuspensionUpperLimit { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

TailLight

Same as above but for the tail lights.

Declaration
public VehicleLightType TailLight { get; set; }
Property Value
Type Description
VehicleLightType
| Improve this Doc View Source

TractionBias

Ratio of front axle grip to rear axle grip; higher value shifts grip forwards.

Declaration
public float TractionBias { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

TractionLoss

Accelerating/braking grip of the vehicle as a multiplier of the tyre surface friction.

Declaration
public float TractionLoss { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

TractionMultiplier

Cornering grip of the vehicle as a multiplier of the tyre surface friction.

Declaration
public float TractionMultiplier { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

TurnMass

Used to calculate motion effects.

Declaration
public float TurnMass { get; set; }
Property Value
Type Description
Single

Methods

| Improve this Doc View Source

BuildFromTable(Dictionary<String, Object>)

Declaration
protected void BuildFromTable(Dictionary<string, dynamic> t)
Parameters
Type Name Description
Dictionary<String, Object> t
| Improve this Doc View Source

UpdateFromGame()

Declaration
protected virtual void UpdateFromGame()
| Improve this Doc View Source

UpdateToGame(String, Object)

Declaration
protected virtual void UpdateToGame(string key, dynamic value)
Parameters
Type Name Description
String key
Object value
  • Improve this Doc
  • View Source
Back to top Generated by DocFX