Re: Offset geometry spawning

Can't quite understand how to make it work. I try to do it like this:

Code: Select all

string sGeomPath = "Objects/Default/primitive_sphere.cgf"; Matrix34 matrix; matrix.SetTranslation(Vec3(3, 1, 2)); m_pEntity->SetSlotLocalTM(1, matrix); m_pEntity->LoadGeometry(1, sGeomPath);
But when I do this no geometry shows up and I get an error saying that the matrix is invalid.

Who is online

Users browsing this forum: No registered users and 1 guest