Jump to content
  • Advertisement
DrMeowEyes

Steering Behaviors written for Angelscript?

Recommended Posts

It's probably working correctly. If max velocity is 1.5 pixels per frame, and the objects are several hundred pixels apart, then it will indeed take several hundred frames to get there. And since the target will have moved several hundred pixels during that time, you should aim several hundred pixels ahead of its current position.

Looking at that seek function in your original post, it should be fine if the target position passed to it is far away from the current position. And the line velocity.limit(maxspeed) in the update function should prevent velocity from ever going too high.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!