Lazy setPathRotationOffset when game build
by Rivage · in Torque Game Builder · 12/10/2006 (8:02 am) · 0 replies
Hello,
I don't know why but after building my game the offset orientation function won't work.
It's working when editing my game but stop working when the game is build from TGB 1.1.3 for window.
this is how and where i mount my object to the path :
Thanks for you help
I don't know why but after building my game the offset orientation function won't work.
It's working when editing my game but stop working when the game is build from TGB 1.1.3 for window.
this is how and where i mount my object to the path :
function playerClass::onCollision( %srcObj, %dstObj, %srcRef, %dstRef, %time, %normal, %contactCount, %contacts )
{
if(%dstObj.class $= "missileClass")
{
%srcObj.explode();
%dstObj.explode();
// set my srcObj to the begening of the path
path.detachObject(%srcObj);
path.attachObject(%srcObj, 6.0, 1.0, 4, 3, RESTART, 1, true);
%srcObj.setPathRotationOffset(75.0);
}
}Thanks for you help
About the author
Leadwerks