Game Development Community

setTransform and snapping

by Marton Gyorgy · in Torque 3D Professional · 05/09/2011 (4:56 am) · 0 replies

Hi,

I am trying to do the following:
I get the camera's lookAtPoint to place a cube (StaticShape) there with setTransform. I am looking at the terrain, it places the center of the object on the terrain. Cool. But when I am looking at another cube it places the cube onto the other cube and it does not sink into the other cube like it does into the terrain. Actually Torque tries to find the location, not to sink into the other cube. Can I turn it off somehow? I tried exposing disableCollision in c++ code to script but it did not help.

And somehow it only registers collision with the top of my cube, not with the sides. Can somebody explain this? I played with the collision box in MilkShape but did not work. (I duplicated the cube to use as collision mesh).