What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

WorldManager.Raycast questions

iyake

Member
Joined
Oct 19, 2014
Messages
143
I've been thinking about writing a waypoint maker for flight paths.

Was wondering if the raycast function gave a line of sight ray or a traversible (via flight) ray (or are they the same?) and how far away the start/end points can be (from our character's position?) for it to remain useful.

What's put into the distances param for the 4-param version? I can't seem to make sense of the value.
 
Last edited:
In no particular order.

Raycast is good about 100 yards away from the character, any further its use falls off rapidly.
Im not sure what you mean by a flight ray.
Works by shooting a small beam from a to b and if it hits anything in between it returns that location.
4 param function used to work differently, just ignore it now.
 
I did something similar to make one of my projects fly, by creating a "waypoint mesh" using raycasts to determine if two points can be traveled. It worked well, however I did notice there are some false positives on the raycast function, sometimes it appears to detect hits where there is no visible objects. I'm guessing this is a problem with the game. These cases are rare though, but they did happen here and there on HW zones. Otherwise, it worked fairly well. Just make sure you're not checking big distances. If you're curious I could post the "mesher" project here (though as I've said, it's not a real mesher, more of a flight waypoint creator and a dirty A* pathfinder).
 
I'll look at changing the internal astar class we use from internal to public since its a very fast implementation.
 
If you already have something working, I'd appreciate it if you shared it.

The biggest hurdle I've come across is visualizing waypoints in the game. Been thinking of mostly using it for a gathering bot.
 
If you already have something working, I'd appreciate it if you shared it.

The biggest hurdle I've come across is visualizing waypoints in the game. Been thinking of mostly using it for a gathering bot.

Nesox made something for warcraft but my experience with directx is super limited so i never figured out what was needed to port it.
 
Back
Top