Saturday, November 22, 2008

Tool chooser

I added a simple tool chooser to the HUD. When the HUD is instantiated it asks the ToolFactory for all of the tools' names and generates some textures. Moving the mouse wheel pops up the text menu and clicking selects a tool. It's not shiny yet, but it works well enough for now.




This is a stack of 100 crates. I am not deactivating motionless objects (yet), so they are all fully active and generating lots of contacts each step. The CPU usage was about 90% when I took the first shot below. I switched to the Move tool and ripped out one of the bottom ones, and they scattered beautifully with no slowdown. The Open Dynamics Engine is pretty nice.

No comments:

Post a Comment