Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → rotating
rotating
2002-03-26, 6:08 AM #1
Code:
      position = VectorAdd(GetThingPos(player), '0.0 0.002 0.0');
      thing1 = CreateThingAtPosNR(cTemplate, GetThingSector(player), position, vectoradd(GetThingLVec(player), '0.0 0.0 0.0'));


what values do i need to replace '0.0 0.0 0.0' with to rotate thing1 180 degrees?
2002-03-26, 6:44 AM #2
First of all, vectors dont have to be floats. '0 0 0' works just as fine as '0.0 0.0 0.0'. (The wackos at LEC actully went as far as to put all five end zeroes, when they didnt need any of them....)


Secondly, it should be '0 180 0'.

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-03-26, 6:53 AM #3
Lookvectors don't use degrees. They are returned as normalized vectors.

So you want to create a thing that looks in the opposite direction of the player? Then use:
Code:
lvec=VectorScale(GetThingLVec(player), -1);


------------------
Author of the Jedi Knight DataMaster.
Visit Saber's Domain.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-03-26, 7:20 AM #4
thanx, SM that worked perfectly!

[This message has been edited by geoman59 (edited March 26, 2002).]

↑ Up to the top!