Advertisement
Guest User

Untitled

a guest
Dec 25th, 2018
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. //exclude the -0.10f to 0.10f range
  2. float xRot = entity.Rotation.X;
  3. if (xRot < 0f && xRot > -0.10f) xRot = -0.10f;
  4. else if (xRot > 0f && xRot < 0.10f) xRot = 0.10f;
  5.  
  6. //use the new X value in the rotation vector3
  7. Vector3 rot = new Vector3(xRot, entity.Rotation.Y, entity.Heading - 20f);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement