Navigation
API > API/Runtime > API/Runtime/ChaosVehiclesCore > API/Runtime/ChaosVehiclesCore/SimModule
Inheritance Hierarchy
- ISimulationModuleBase
- TSimulationModuleTypeable
- FTorqueSimModule
- FAxleSimModule
- FClutchSimModule
- FEngineSimModule
- FMotorSimModule
- FTransmissionSimModule
- FWheelBaseInterface
- FWheelSimModule
References
| Module | ChaosVehiclesCore |
| Header | /Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/SimModule/TorqueSimModule.h |
| Include | #include "SimModule/TorqueSimModule.h" |
Syntax
class FTorqueSimModule :
public Chaos::ISimulationModuleBase ,
public Chaos::TSimulationModuleTypeable< FTorqueSimModule >
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | AngularPosition | ||
| float | AngularVelocity | ||
| float | BrakingTorque | ||
| float | DriveTorque | ||
| float | LoadTorque |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| FName | |||
| void | AddAngularVelocity
(
float AngularVelocityIn |
||
| FTorqueSimModule * | CastToTorqueInterface
(
ISimulationModuleBase* SimModule |
Cast an ISimulationModuleBase to a FTorqueSimModule if compatible class | |
| float | |||
| float | |||
| float | |||
| float | |||
| float | |||
| float | GetRPM () |
||
| void | IntegrateAngularVelocity
(
float DeltaTime, |
Integrate angular velocity using specified DeltaTime & Inertia value, Note the inertia should be the combined inertia of all the connected pieces otherwise things will rotate at different rates | |
| void | SetAngularPosition
(
float AngularPositionIn |
||
| void | SetAngularVelocity
(
float AngularVelocityIn |
||
| void | SetBrakingTorque
(
float TorqueIn |
||
| void | SetDriveTorque
(
float TorqueIn |
||
| void | SetLoadTorque
(
float TorqueIn |
||
| void | SetRPM
(
float InRPM |
||
| void | TransmitTorque
(
const FSimModuleTree& BlockSystem, |
Transmit torque between this module and its Parent and Children. |
Overridden from ISimulationModuleBase
| Type | Name | Description | |
|---|---|---|---|
| bool | IsBehaviourType
(
eSimModuleTypeFlags InType |
Is Module of a specific type - used for casting |