Skip to main content
replaced offset with origin
Source Link
bummzack
  • 22.7k
  • 5
  • 64
  • 87

I don't know XNA, but usually the rotation of a sprite is around it's origin. So the lens position should be the center of the circle and the offsetorigin should be y: lensRadius, x: lensRadius - circleRadius. That would initially position your lens at the 3 o'clock position (0 radians)

I don't know XNA, but usually the rotation of a sprite is around it's origin. So the lens position should be the center of the circle and the offset should be y: lensRadius, x: lensRadius - circleRadius. That would initially position your lens at the 3 o'clock position (0 radians)

I don't know XNA, but usually the rotation of a sprite is around it's origin. So the lens position should be the center of the circle and the origin should be y: lensRadius, x: lensRadius - circleRadius. That would initially position your lens at the 3 o'clock position (0 radians)

Source Link
bummzack
  • 22.7k
  • 5
  • 64
  • 87

I don't know XNA, but usually the rotation of a sprite is around it's origin. So the lens position should be the center of the circle and the offset should be y: lensRadius, x: lensRadius - circleRadius. That would initially position your lens at the 3 o'clock position (0 radians)