View Single Post
Old 19th June 2008, 08:37 AM   #7
speciesunknown
Junior Member
Member
 
Join Date: Feb 2008
Posts: 12
Default Re: Possabilities & Advantages of AC3D

What I do is to take the first polygon, and look at its bottom most edge. Because I am only rotating the buildings in the Y axis, this will present a vector that is rotated by a certain amount away from the Z direction. I use the dot product against (0,0,1) and some magic to create the 3x3 rotation matrix. Then, I combine this with the loc tag to create a 4x4 transformation matrix. This means I do not have to use any mods for ac3d.

For moving objects such as bottles, I am using an in-game editor to place them, letting the physics engine bring them to rest, and then storing their positions in an SQL database.
speciesunknown is offline   Reply With Quote