Hello again, meet my problem: I have this pointer that moves back and forth according to the left/right motion of the mouse. (under param(0)==5). Everything worked masterfully... until I added rotation.
I want to rotate thing knob around the pitch axis, but as soon as I move my mouse now, MotS crashes. I've never done much with rotation before, and I'm a noob at vectors in general, so some help would be much appreciated.
I want to rotate thing knob around the pitch axis, but as soon as I move my mouse now, MotS crashes. I've never done much with rotation before, and I'm a noob at vectors in general, so some help would be much appreciated.
Code:
playeraction: if(GetParam(0)==14) return; if(GetParam(0)==5.0) { SetThingVel(pointer, VectorScale(GetThingLVec(pointer), (GetParam(2)/1000))); Rotate(knob, VectorSet((GetParam(2)/1000), 0, 0)); } ReturnEx(0); return;