How to update the API, UpdateTrans of VCollide?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
jhr1021
Posts: 8
Joined: Fri Apr 10, 2009 11:48 pm

How to update the API, UpdateTrans of VCollide?

Post by jhr1021 »

Hello guys,

I try to apply VCollide to Irrlicht now. However, I don't know how to update position and rotation of an object. This is the code that I implemented. If you have the experience on VCollide, let me how to fix in updating position and rotation of an object.

ptrSceneNode = m_nodePool[nId];
ptrSceneNode->setPosition(pos);

mat.setRotationDegrees(ptrSceneNode->getRotation());

double newTrans[4][4] = {{mat[0], mat[1], mat[2], pos.X},
{mat[4], mat[5], mat[6], pos.Y},
{mat[8], mat[9], mat[10], pos.Z},
{0, 0, 0, 1}};
m_ptrVCollide->UpdateTrans(nId, newTrans);
Post Reply