Thursday, February 24, 2011

Another item off the list

Last night I completed the ability for the player to add objects to the world on a whim. It's pretty much precisely as I described it would be in yesterday's post, which is to say that from the pause menu the player selects "Add Object" which expands to options including "Box", "Sphere" or "Cylinder". Clicking on each further expands into a set of slider controls which determine the dimensions for the object. Once those are adjusted according to the player's every want and desire (s)he can then click "Add to world" and voila, it's added and interacts as a physical object.

I'm experiencing a problem with the land object, however. I'm not convinced that I'm generating it properly due to the fact that some objects prefer to exist solely subterraneously. It appears to me that they are falling through invisible gaps in the land. I'll have to throw in some catches and cleverly placed cout commands so I can determine where the discrepancies (if any) lie between the heightmap data used for rendering and that used for physical interaction. They should, of course, be identical. But when it comes to me and my programming, anything is suspect I suppose (that's self-deprecating humor of which only I can take part).

I'm not sure how much time I'll be able to devote to it tonight. I have an appointment directly after work today and I'm unsure of how long it will last. Tomorrow is right out due to an essentially all-night dinner engagement. Saturday will lend little time as my girlfriend and I have yet another evening obligation.

I need more time!

No comments:

Post a Comment