Footman
(Footman)
1
Hello,
Is there any reason why these fuction are not const? They dont change anything. I need them to be const because of my functions that use them.
float GetDistanceTo(AActor* OtherActor);
float GetHorizontalDistanceTo(AActor* OtherActor);
float GetVerticalDistanceTo(AActor* OtherActor);
float GetDotProductTo(AActor* OtherActor);
float GetHorizontalDotProductTo(AActor* OtherActor);
xlar8or
(xlar8or)
2
You want it to return const float? why not do :
const float Value = (const float) GetDistanceTo(OtherActor);
xlar8or
(xlar8or)
4
You are welcome Please mark the answer as correct to close the question
Footman
(Footman)
5
Anyway. My solution was to use const_cast(Object) to call this functions within const functions.