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.
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.