Helloo ! I am using this function for getting bounding box of an obstacle or an entity
i have a handle to my crate3 and this function takes the handle of the entity and
gives you bounding box values in x , y , z dimensions minX, minY, minZ , maxX maxY, maxZ.
For my crate3 i get the bounding box of crate1, which is wrong, when I need bounding box
values of crate1 then I get 0 in all minX, minY, minZ , maxX maxY, maxZ.. I don't know why
Code:
crat1 = GameEngine::entityWorldID("crate1");
float minX,minY,minZ,maxX,maxY,maxZ;
h3dGetNodeAABB(crat1,&minX,&minY,&minZ,&maxX,&maxY,&maxZ);
i don't understand why this is happening that
1. Firstly it is giving me wrong entities bounding box values
2. Why it doesnt give me value for another entity why it gives 0
I am 100% sure that my every entity has a unique id