Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Rotate vector by random max degree

$
0
0

@GeonBit wrote:

Whats the best way to rotate a vector randomly within a limited angle?

For example, imagine a FPS game where you aim at a certain direction, but when firing a bullet it will shoot at the general aim direction but with a random offset up to 15 degrees angle from the original direction.

Thanks!

Posts: 4

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles