Hi!
I just add one sentence in the celtest:
csRef<iPcLinearMovement> pclinmove = CEL_QUERY_PROPCLASS_ENT (entity_cam,
iPcLinearMovement);
if (hascal3d)
{
pclinmove->InitCD (
csVector3 (0.5f, 0.8f, 0.5f),
csVector3 (0.5f, 0.4f, 0.5f),
csVector3 (0.0f, 0.01f, 0.0f));
}
else
{
pclinmove->InitCD (
csVector3 (0.5f, 0.8f, 0.5f),
csVector3 (0.5f, 0.4f, 0.5f),
csVector3 (0.0f, -0.4f, 0.0f));
}
pclinmove->SetPosition(pos,yrot,sector); ///add
So! Is there any problems?
That's strange. SetPosition() should work. Can I see the full code you're using?
I just checked the code of SetPosition() and it looks correct.
Greetings,