Custom Behavior for faster collision detection?

Hi gang,

I've got the Java 3D collision detection working, but I'm trying to cut down on ressource use for my game.

Now, my character only walks in a 2D plain (X x Z) and he only follows specific trajectories (turns 90 degrees only, moves a predetermined distance at every move). So, this means I can avoid colliding into walls in my NvaigationBehavior class by checking my map reference before moving (no need to actually bump into a wall and have Java3D telle me). It also means that all I need it a way to determine if he is standing on a power-up for example (the powerup and him are on the exact same Point3D). So, there's no need for complex Bounds or Geometry claculations to figure this out. Is it wise or even advantageous for me to design my own CollisionBehavior which, on each Frame, will double-check with my map reference if my character is standing on a powerup? They don't move, so it's not really complicated, just have to keep a table or array of objects and check it something's there or not.

Thanks!

[1050 byte] By [Green_Earsa] at [2007-9-29 11:47:37]
# 1
Note: The powerups do move around too, so, if the powerup and the character are in the middle of a translation (in between predefined grid positions), then I need to find out if their paths cross and react appropriately.
Green_Earsa at 2007-7-15 1:22:55 > top of Java-index,Security,Cryptography...