Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. FVector AMarigoldCharacter::GetPositionFromAngle(float Angle, float Radius, FVector center)
  2. {
  3. float radians = Angle * 3.141592 / 180;
  4. float x = sin(radians) * Radius;
  5. float z = cos(radians) * Radius;
  6.  
  7. FQuat NewRotation = TargetInteractableObject->GetActorRotation().Quaternion();
  8. return center + NewRotation * (FVector(x, 0, z));
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement