|
CARLA
|
Parent class of the vehicle animation blueprints. More...
#include <CarlaVehicleAnimationInstance.h>
Inheritance diagram for UCarlaVehicleAnimationInstance:Classes | |
| struct | FWheel |
Public Member Functions | |
| const FWheelAnimationData * | GetWheelPose (int32 WheelIndex) const |
| The pose last written for a wheel, or nullptr if there is no such wheel. | |
| virtual void | NativeUpdateAnimation (float DeltaSeconds) override |
Private Member Functions | |
| void | BeginRolling () |
| TArray< FWheelAnimationData > & | GetWheelPoses () |
| void | InitWheels () |
| void | RollWheels (const ACarlaWheeledVehicle &Vehicle, float DeltaSeconds) |
| bool | ShouldRollWheels (const ACarlaWheeledVehicle &Vehicle) const |
| void | TrackWheelLocations () |
| World locations of the wheels, kept while not rolling. | |
| void | UpdateWheelAnimationOverride (const ACarlaWheeledVehicle &Vehicle) |
Private Attributes | |
| bool | bRollingWheels = false |
| bool | bWasWheelAnimationOverridden = false |
| float | MaxTravelSpeed = 15000.0f |
| cm/s. A wheel moving faster than this was teleported, and is not turned. | |
| TArray< FWheel > | Wheels |
Parent class of the vehicle animation blueprints.
Draws the vehicle's overridden wheel poses, and otherwise, while Chaos is not simulating the vehicle, which is when the engine leaves the wheels frozen, rolls them by the distance they travel.
Definition at line 22 of file CarlaVehicleAnimationInstance.h.
|
private |
Definition at line 102 of file CarlaVehicleAnimationInstance.cpp.
References GetWheelPoses(), InitWheels(), and Wheels.
Referenced by NativeUpdateAnimation().
| const FWheelAnimationData * UCarlaVehicleAnimationInstance::GetWheelPose | ( | int32 | WheelIndex | ) | const |
The pose last written for a wheel, or nullptr if there is no such wheel.
Definition at line 160 of file CarlaVehicleAnimationInstance.cpp.
|
private |
Definition at line 167 of file CarlaVehicleAnimationInstance.cpp.
Referenced by BeginRolling(), RollWheels(), and UpdateWheelAnimationOverride().
|
private |
Definition at line 59 of file CarlaVehicleAnimationInstance.cpp.
References UCarlaVehicleAnimationInstance::FWheel::LastLocation, UCarlaVehicleAnimationInstance::FWheel::RestLocation, and Wheels.
Referenced by BeginRolling(), and TrackWheelLocations().
|
overridevirtual |
Definition at line 27 of file CarlaVehicleAnimationInstance.cpp.
References BeginRolling(), bRollingWheels, RollWheels(), ShouldRollWheels(), TrackWheelLocations(), UpdateWheelAnimationOverride(), and Vehicle.
|
private |
Definition at line 116 of file CarlaVehicleAnimationInstance.cpp.
References GetWheelPoses(), UCarlaVehicleAnimationInstance::FWheel::LastLocation, MaxTravelSpeed, UCarlaVehicleAnimationInstance::FWheel::RestLocation, RollWheel(), UCarlaVehicleAnimationInstance::FWheel::SpinAngle, Vehicle, and Wheels.
Referenced by NativeUpdateAnimation().
|
private |
Definition at line 52 of file CarlaVehicleAnimationInstance.cpp.
References Vehicle.
Referenced by NativeUpdateAnimation().
|
private |
World locations of the wheels, kept while not rolling.
Definition at line 83 of file CarlaVehicleAnimationInstance.cpp.
References InitWheels(), and Wheels.
Referenced by NativeUpdateAnimation().
|
private |
Definition at line 134 of file CarlaVehicleAnimationInstance.cpp.
References bWasWheelAnimationOverridden, GetWheelPoses(), and Vehicle.
Referenced by NativeUpdateAnimation().
|
private |
Definition at line 68 of file CarlaVehicleAnimationInstance.h.
Referenced by NativeUpdateAnimation().
|
private |
Definition at line 70 of file CarlaVehicleAnimationInstance.h.
Referenced by UpdateWheelAnimationOverride().
|
private |
cm/s. A wheel moving faster than this was teleported, and is not turned.
Definition at line 37 of file CarlaVehicleAnimationInstance.h.
Referenced by RollWheels().
|
private |
Definition at line 66 of file CarlaVehicleAnimationInstance.h.
Referenced by BeginRolling(), InitWheels(), RollWheels(), and TrackWheelLocations().