Curve Bullets

Swarm

Finally got around to putting in curving bullets. Takes a curve rate, time until curve starts, time until curve ends, and curve direction. Bullet travels normally until the curve time starts, then the direction gets changed by the curve rate, then the bullet continues on a straight path after the curve time ends.

The old way was to specify two vectors, and the bullet would go from one direction to the other, but my math sucks so I can’t seem to iron out all the bugs in it yet. This way was a lot easier to do.

Curve1

Testing

Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s