mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 09:35:25 +00:00
Fix dynamic navmesh bounds not located at the origin
This commit is contained in:
parent
2139e9d348
commit
95ca6768a5
@ -41,7 +41,8 @@ void AStevesDynamicNavMeshVolume::UpdateDimensions(const FVector& NewDimensions)
|
||||
Box.X = NewDimensions.X;
|
||||
Box.Y = NewDimensions.Y;
|
||||
Box.Z = NewDimensions.Z;
|
||||
GetBrushComponent()->Bounds = FBoxSphereBounds(FVector::ZeroVector, NewDimensions*0.5f, NewDimensions.GetMax()*0.5f);
|
||||
// Bounds are in World Space, hence use actor location as origin
|
||||
GetBrushComponent()->Bounds = FBoxSphereBounds(GetActorLocation(), NewDimensions*0.5f, NewDimensions.GetMax()*0.5f);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user