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 → Vectors of the pitch,yaw, roll variety
Vectors of the pitch,yaw, roll variety
2002-09-16, 8:00 PM #1
I just wanna double-check something with the experts here.

I been trying to use CreateThingatPos() using GetThingLoc() and all of the various GetThingL... verbs to get the X, Y, Z and p, y, r to be exactly like another thing. The other thing gets destroyed so the new thing replaces it. It did everything right but the "roll" was always ZERO.

Ok so I understand there is a problem getting this value. So I changed everything around so it was the "pitch" that is the important one to get right. But, to my dismay, everything I try this way also returns a ZERO value.

Is there a way I can get this right? Actually the pitch is always "0" or "180". This is all I really need to determine. I have a very structured way that I can make this cog do what it does without getting the pitch accurately(lots of if/ if else stuff), but this means I need to remove all the randomizers it has...Which it would be better with.
2002-09-17, 5:30 AM #2
Do you, by any chance, mean "GetthingLvec()"? That doesnt work for the player headpitch, and I assume thats what you need it for. Pull out your copy of the Datamaster, flip to the 'Tutorials' section. There is a nice peice there on how to solve your problem.

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-09-18, 4:34 PM #3
OOps. Yes I meant GetThingLVec.
But this is for a 3do not an actor.
And the problem is PITCH and ROLL seem to be inretrievable. And Isnt Data-master the same stuff as SPecs? If not, whats the big difference?. I cross reference with JK Specs and Milleniums cog-verb-list.
2002-09-19, 5:26 PM #4
See, the new thing is created after the other one rolls over sometimes...

...but it never creates the new thing upsidedown.

I tried that fireprojectile thing and it still creates the new thing upright instead of upside down.

Oh my!
2002-09-20, 9:51 AM #5
Quote:
<font face="Verdana, Arial" size="2">And Isnt Data-master the same stuff as SPecs?</font>


The DataMaster is a lot more detailed than the JKSpecs. The DataMaser is not an updated JKSpecs - every documented verb was researched and no verb information was copied from the JKSpecs. And I will soon be able to say the same for the Flags section.

Quote:
<font face="Verdana, Arial" size="2">And the problem is PITCH and ROLL seem to be inretrievable.</font>


You can't get PYR out of a lookvector. PYR is orientation, lookvector is direction. Since a lookvector does not orient a thing when it is set, JK will orient the thing so that it is right-side-up. So you can't make a thing look upside-down with an lvec.

But if you're using MotS, then you can use GetThingLvecPYR() and SetThingLookPYR() instead. I believe they'll do what you want.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-09-20, 1:05 PM #6
Ah yes The Great MotS. The one LEC so conveniently DIDNT package with J-Outcast and Jedi Knight in that tin cookie box. I gave up on MotS because nobody seemed to play it, but when I went back to try using it again I pulled out my cd and it was cracked in half.

Ive looked at the datamaster in the last day now. It looks well organized with all the infermation.

Still what about that GetThingLVec tutorial that suggests shooting a projectile. I tried this with my 3do, the mesh is the torso type,...but the new thing created still doesnt appear upsidedown though.

Im setting up the cog different so the code will aoutomaticlly know that the 3do is upside down because of the time.

[This message has been edited by Gelatinous_Drool (edited September 20, 2002).]
2002-09-21, 4:06 AM #7
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Gel:
Still what about that GetThingLVec tutorial that suggests shooting a projectile. I tried this with my 3do, the mesh is the torso type,...but the new thing created still doesnt appear upsidedown though.</font>

Quote:
<font face="Verdana, Arial" size="2">Originally posted by Saber:
You can't get PYR out of a lookvector. PYR is orientation, lookvector is direction. Since a lookvector does not orient a thing when it is set, JK will orient the thing so that it is right-side-up. So you can't make a thing look upside-down with an lvec.</font>


------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!