Disable Wheel Sweep for bikes
This commit is contained in:
parent
937eb73bfa
commit
4d635d5c92
|
@ -42,6 +42,10 @@ void ACarlaWheeledVehicle::SetWheelCollision(UWheeledVehicleMovementComponent4W
|
|||
const FVehiclePhysicsControl &PhysicsControl ) {
|
||||
|
||||
#ifdef WHEEL_SWEEP_ENABLED
|
||||
const bool IsBike = IsTwoWheeledVehicle();
|
||||
|
||||
if (IsBike)
|
||||
return;
|
||||
|
||||
const bool IsEqual = Vehicle4W->UseSweepWheelCollision == PhysicsControl.UseSweepWheelCollision;
|
||||
|
||||
|
|
|
@ -122,6 +122,12 @@ public:
|
|||
|
||||
void SetVehicleLightState(const FVehicleLightState &LightState);
|
||||
|
||||
UFUNCTION(BlueprintNativeEvent)
|
||||
bool IsTwoWheeledVehicle();
|
||||
virtual bool IsTwoWheeledVehicle_Implementation() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/// @}
|
||||
// ===========================================================================
|
||||
/// @name Vehicle input control
|
||||
|
|
Loading…
Reference in New Issue