making a collisionmap

Software: Away3D 4.x

Avatar
sebbdk, Jr. Member
Posted: 22 November 2011 04:00 PM   Total Posts: 39

i am trying to auto generate a collision-map that i can use for A* pathfinding.

The app i am working has a list of meshes i need to loop over and add to the map.

im thinking either to run through the scene and collision-test each spot in the grid, or maybe i could grab the bounding box of each mesh and do it based on them.

Any idea as for the best approach to this? smile

so far i tried with the AxisAlignedBoundingBox class and then just looping over min and max position values, however the result seems offset, which might have to with the fact that i lose all my translations from my mesh because AxisAlignedBoundingBox only accepts geometry, meaning i have to set them again.. smile

but this would also not give optimal result, perferedly i should do it vs the Bounding box using the static Bounds class and then maybe do some collision check, im am not to sure how to go about this tho smile

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X