Guest User

Untitled

a guest
Nov 9th, 2020
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. void RotateThing(Vector3 euler)
  2. {
  3.    ThingTransform.Rotate(euler);
  4.    var newBounds = GetRotatedBounds(Quaternion.Euler(euler), Bounds);
  5.    Debug.Log($”size: width {newBounds.x}, height {newBounds.y});
  6. }
  7.  
  8.  
  9. Vector3 GetRotatedBounds(Quaternion rot, Vector3 bounds)
  10. {
  11.    return rot * bounds;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment