It’s AAAliveeee!!!…. well sort of.
Yesterday evening I began to inject some life into my entities by coding the Behaviour Class that goes inside the CSimpleAI Component, my first AI component in the game, which, at least for now, is the very basic Brain of my entities. The cool thing being obviously, that not every entity has a that component.
This morning I finished coding the very basic first behaviour to make into the game. BehaviourGoToPosition, which takes an entity, a Vector in the 3D space(target_position), and a speed value. The AI component takes care of passing the parent entity that it belongs to on the the Behaviour it currently has, and the values I passed as the target_position, and speed where totally hardcoded and arbitrary… calm down there! I’m just kick starting the whole thing.
A added this behaviour to the component as the initial Behaviour and voilà!!!
The entity quickly went where it should be going! OH! The joy of creating “life”!
1 Comment
Other Links to this Post
RSS feed for comments on this post. TrackBack URI
By PaulECoyote, May 29, 2009 @ 2:21 am
‘grats