I am working on a project in OpenGL 2.0. I load objects from a file, that file contains information about object names, its position, scale and rotation.
I got all these information in code, now I want to calculate the boundaries of all the objects loaded so I can start working on collision.
Project is the scale value is like 0.1 i.e it is multiplied with a dimension vector to get the actual boundary dimension.
e.g Object 1: scale x: -0.1, y: 0.05, z: 0.1 Object 2: scale x: 0.1, y: 0.1, z: 0.1
Object 1: pos x: 5, y: 21.7269, z: 0 Object 2: pos x -58.0646 y: -6.68359, z: 0
Object 1: rot x: 0, y: 0, z: 0 Object 2: rot x:0, y:90, z:0
My question is, I want to calculate the dimensions i.e boundary of each object, how can achieve this target?