Hi everybody,
To learn how you can make a 3D space with a collisions detection system, I’m playing with the Advanced Frustum Hotel Room (http://www.infiniteturtles.co.uk/projects/away3d/demos/FrustumHotelRoom/Advanced_FrustumHotelRoom.html).
I can make a .3ds file and I can make a collision file (.png).
I see the collision file as a kind of a 2D map of the 3D space. There’s one thing I don’t understand. How do you put these two files together at the right position?
Is there some kind of reference point between the .3ds file and the collision file?
For example, when I increase the 3D room two times and also increase the picture in the collision file two times, the collisions are not on the right position anymore.
Somewhere in the code there is:
cameraX = 350 - camera.x*1.87;
cameraY = 510 + camera.z*1.87;
I think this has to do with it but I have no idea where these numbers are coming from.