Setting an object rotation by the player's camera vector?
#1

Well,yes,is it possible?

Since I've tried making it and it was just fucked up.
Maybe I miscalculated something.

This is how I tried to make it however:
pawn Code:
SetObjectRot(missile_object[i],VehCameraPos[i][0]+VehVectorPos[i][0],VehCameraPos[i][1]+VehVectorPos[i][1],VehCameraPos[i][2]+VehVectorPos[i][2]);
There are no problems with the camera vector storing since the explosions are creating correctly:
pawn Code:
CreateExplosion(VehCameraPos[i2][0]+(VehVectorPos[i2][0] * Dist)+OffSet[i2][0],VehCameraPos[i2][1]+(VehVectorPos[i2][1] * Dist)+OffSet[i2][1],VehCameraPos[i2][2]+(VehVectorPos[i2][2] * Dist)+OffSet[i2][2],7,100);
So the problem is in SetObjectRot, is there any way of solving this issue? Or at least any alternatives would be highly appreciated.

And sorry, this is the first time I'm messing with camera vectors.
Reply


Messages In This Thread
Setting an object rotation by the player's camera vector? - by [XST]O_x - 04.09.2010, 14:39
Re: Setting an object rotation by the player's camera vector? - by Mauzen - 04.09.2010, 14:43
Re: Setting an object rotation by the player's camera vector? - by [XST]O_x - 04.09.2010, 14:55
AW: Setting an object rotation by the player's camera vector? - by Trooper[Y] - 14.07.2012, 14:03

Forum Jump:


Users browsing this thread: 1 Guest(s)