Well, coding time started this monday and I wanted to keep you informed on my progress and my schedule for the next weeks.
As I explained before, I will be working in three main sections (Steering Behaviours, Path Finding and Decision Making). I am planning to work four weeks in each of them (hoping I only need 3 weeks for the first too). I will be starting in steering behaviours (which is needed by pathfinding), then I'll be covering Pathfinding and, finally I'll be working with Decision Making.
After all of this I will make a simple but complete application showing how to use all of what I made.
I hope I'll be soon showing you some code from steer property class, I've already starting coding and I am waiting to test it in some application.
That's all for now,
talk to you soon =)
This few days I´ve been working in Steering Behaviours.
I´ve been writing some code, basically getting some ideas from pcmover property class and upgrading it.
This property class is based, mostly, in Linear Algebra and High School physics. Most of what I am doing in here is performing calculations with vectors.
For better understanding I will put some images I drew in paint (yeah I know is lame but is the best I could come up with =$)
As you can see, everything is about determining an entities direction to perform its current task.
This task could be seeking, pursuing of fleeing from a target; while avoiding obstacles, or separating
from other entities, etc.
I have been reading section 4.16 of Crystal Space manual (Format of Map Files). I have already think of a way to define graphs in an xml, first of all I think the new world file should look like this:
one texture specification section.
one material specification section.
one shader section.
one sounds section.
one variable section.
one plugin section.
one settings section.
zero or more start locations.
zero or more library specifications.
zero or more keys.
zero or more add-ons.
zero or more mesh factories.
zero or more sectors.
one ore more graphs
zero or more collections.
one sequence section.
one trigger section.
I think one graph should be specified for each sector and a special kind of edge should be included in the nodes which connect two or more sectors.
This graph section should look like this:
position x="0", y="0", z="0"/
node id ="1"
position x="50", y="0", z="50"/
edge to="-1" sector="sector_name"/
BTW: this is meant to be xml but I didnt get to write it correctly, I will re-write this later :)...
|<< <||Current||> >>|