Wednesday, January 17, 2007

Collisions and console...

Got collision detection up and running again, and now improved with a call to actor class' "handleCollide" function. This function can be overridden in scripting, and this way special collision stuff can be done in scripting world. Default collision reponse (such as forces applied) is handled by the class you derive from e.g. if you derive from vehicle the default physics acts like a vehicle.

I also found some time to polish the console. Now it behaves much more clever when handling multi line statements, and also provides feedback to the user when he is typing a multi line statement. Removed some confusing error messages and improved display of return values. Also fixed a bug that caused the terminal to bork when closing console, needing a reset command to work again.

The next missing thing is to handle controlling of an actor. This should also be moved to scripting world. Actually, I have already prepared a lot of stuff for this to work and am not missing much right now. When this is implemented I only need to implement two actors in script and we are back to status quo before the restructure: Shot, Bug actors. Status with a lot of improvements that is.
I am currently installing World of Warcraft. Seems like a cool game, will blog about it later. Until then...

No comments: