Navigation
API > API/Runtime > API/Runtime/ChaosVehiclesCore > API/Runtime/ChaosVehiclesCore/SimModule
Inheritance Hierarchy
- FWheelBaseInterface
- TSimModuleSettings
- TSimulationModuleTypeable
- FWheelSimModule
References
| Module | ChaosVehiclesCore |
| Header | /Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/SimModule/WheelModule.h |
| Include | #include "SimModule/WheelModule.h" |
Syntax
class FWheelSimModule :
public Chaos::FWheelBaseInterface ,
public Chaos::TSimModuleSettings< FWheelSettings > ,
public Chaos::TSimulationModuleTypeable< FWheelSimModule >
Constructors
| Type | Name | Description | |
|---|---|---|---|
FWheelSimModule
(
const FWheelSettings& Settings |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FName | |||
| float | Get the radius of the wheel [cm] | ||
| FVector | |||
| float | Get linear forwards speed from angluar velocity and wheel radius | ||
| float | |||
| void | SetLinearSpeed
(
float LinearMetersPerSecondIn |
Set wheel rotational speed to match the specified linear forwards speed |
Overridden from FWheelBaseInterface
| Type | Name | Description | |
|---|---|---|---|
| float |
Overridden from ISimulationModuleBase
| Type | Name | Description | |
|---|---|---|---|
| void | Animate
(
Chaos::FClusterUnionPhysicsProxy* Proxy |
Animate/modify the childToParent transforms, to say rotate a wheel, or rudder, etc | |
| TSharedPtr< FModuleNetData > | GenerateNetData
(
const int32 NodeArrayIndex |
This is the replication datas | |
| FSimOutputData * | |||
| const FString | GetDebugName () |
Get the friendly name for this module, primarily for logging & debugging module tree | |
| bool | GetDebugString
(
FString& StringOut |
Option to return debug text for drawing on the HUD in the Game Thread | |
| bool | IsBehaviourType
(
eSimModuleTypeFlags InType |
Is Module of a specific type - used for casting | |
| void | Simulate
(
float DeltaTime, |
The main Simulation function that is called from the physics async callback thread |