line 21, you have "HP-floor(abs(Speed))". That line doesn't do anything, I assume you meant "-="?
that probably won't fix your problem but i saw that so thought i'd mention it
Ok, So I fixed the movement, or at least got it how I want it, but I have a problem with the Rotors.
I've editted out the previous problem, the new one is in a post further down.
Sorry.
Last edited by T955i; 07-12-2010 at 04:07 AM. Reason: Fixed
line 21, you have "HP-floor(abs(Speed))". That line doesn't do anything, I assume you meant "-="?
that probably won't fix your problem but i saw that so thought i'd mention it
Ah, yea, it's meant to be -= but it doesn't do a huge amount untill I get the movement improved =/
Maybe if you posted a quick video, so we could see what it's doing. I've got a rough idea, but for example I have no idea what HP is, or if Speed, SSpeed, and USpeed are what they think I are
I have one problem now, I have a feeling it's hard...
Basically, I have my main rotor, rotating on Yaw, and my smaller one, rotating on Pitch.
Not too hard, but as the body rolls or pitchs, the main rotor doesn't. The problem is that because they are spinning, the roll is at the wrong position.
I attempted to do it this way:
But it just makes it wobble, any ideas on how to fix this please?Code:#Rotations (Rotor and Body): Yaw = Body:angles():yaw()-(Sensitivity*EyeX) TAng = ang(clamp(Speed,-20,20),Yaw,clamp(SSpeed,-20,20)) RotYaw = holoEntity(8):angles():yaw()#+5 RotPitch = holoEntity(10):angles():pitch()#+5 holoAng(2,TAng) holoAng(8,Body:angles():setPitch(0)+ang(RPitch,RotYaw,0)) holoAng(10,Body:angles():setPitch(0)+ang(RotPitch,0,0)) if (inrange(holoEntity(8):angles():yaw(),-45,45)|inrange(holoEntity(8):angles():yaw(),135,225)){ RPitch = Body:angles():pitch() } else{RPitch = Body:angles():roll()}
Honestly, I didn't know what I was doing =/
Thanks in advance.
Last edited by T955i; 07-16-2010 at 11:19 AM. Reason: Better explanations + new problem.
Sorry for this bump, but I really could do with some help, and I've also explained the problem better above. Thanks.
Bookmarks