+ Reply to Thread
Results 1 to 6 of 6

Thread: E2 hologram movement code - Needs improvements.

  1. #1
    Wirererer T955i's Avatar
    Join Date
    Aug 2009
    Location
    About 10cm to your North-West
    Posts
    163

    Question E2 hologram movement code - Needs improvements.

    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

  2. #2
    Wire Sofaking nescalona's Avatar
    Join Date
    Apr 2007
    Location
    Shoreline, Washington
    Posts
    1,299

    Default Re: E2 hologram movement code - Needs improvements.

    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

  3. #3
    Wirererer T955i's Avatar
    Join Date
    Aug 2009
    Location
    About 10cm to your North-West
    Posts
    163

    Default Re: E2 hologram movement code - Needs improvements.

    Ah, yea, it's meant to be -= but it doesn't do a huge amount untill I get the movement improved =/

  4. #4
    Wire Sofaking nescalona's Avatar
    Join Date
    Apr 2007
    Location
    Shoreline, Washington
    Posts
    1,299

    Default Re: E2 hologram movement code - Needs improvements.

    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

  5. #5
    Wirererer T955i's Avatar
    Join Date
    Aug 2009
    Location
    About 10cm to your North-West
    Posts
    163

    Default Re: E2 hologram movement code - Needs improvements.

    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:
    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()}
    But it just makes it wobble, any ideas on how to fix this please?

    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.

  6. #6
    Wirererer T955i's Avatar
    Join Date
    Aug 2009
    Location
    About 10cm to your North-West
    Posts
    163

    Default Re: E2 hologram movement code - Needs improvements.

    Sorry for this bump, but I really could do with some help, and I've also explained the problem better above. Thanks.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots