Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FVector AMarigoldCharacter::GetPositionFromAngle(float Angle, float Radius, FVector center)
- {
- float radians = Angle * 3.141592 / 180;
- float x = sin(radians) * Radius;
- float z = cos(radians) * Radius;
- FQuat NewRotation = TargetInteractableObject->GetActorRotation().Quaternion();
- return center + NewRotation * (FVector(x, 0, z));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement