mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
tassetptr impl, harvesting stuff, relevancy?
This commit is contained in:
@@ -101,4 +101,14 @@ struct FQuat FRotator::Quaternion()
|
||||
#endif
|
||||
|
||||
return RotationQuat;
|
||||
}
|
||||
|
||||
FVector FRotator::Vector() const
|
||||
{
|
||||
float CP, SP, CY, SY;
|
||||
SinCos(&SP, &CP, Pitch * (PI / 180.0f));
|
||||
SinCos(&SY, &CY, Yaw * (PI / 180.0f));
|
||||
FVector V = FVector(CP * CY, CP * SY, SP);
|
||||
|
||||
return V;
|
||||
}
|
||||
Reference in New Issue
Block a user