+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Hyperaccurate Turret

  1. #1
    Wirererer xixo12e is on a distinguished road xixo12e's Avatar
    Join Date
    Feb 2009
    Posts
    204

    Default Hyperaccurate Turret

    Still need help, see bottom post.
    Last edited by xixo12e; 07-04-2009 at 08:24 AM.

  2. #2
    Wirererer adadr will become famous soon enough adadr's Avatar
    Join Date
    Jan 2009
    Location
    South Dakota, USA
    Posts
    293
    Blog Entries
    3

    Default Re: Hyperaccurate Turret

    for applyAngForce you want to get the bearing and elevation i believe.
    Code:
    Pitch = entity():elevation(owner():pos()) 
    Yaw = entity():bearing(owner():pos()) 
    Roll = entity():angles():roll()
    
    then make to angle
    Code:
    Ang = ang(Pitch,Yaw,Roll)*100 or so
    
    then apply force
    Code:
    applyAngForce(Ang+$Ang*5) works good
    

  3. #3
    Wirererer xixo12e is on a distinguished road xixo12e's Avatar
    Join Date
    Feb 2009
    Posts
    204

    Default Re: Hyperaccurate Turret

    Quote Originally Posted by adadr View Post
    for applyAngForce you want to get the bearing and elevation i believe.
    Code:
    Pitch = entity():elevation(owner():pos()) 
    Yaw = entity():bearing(owner():pos()) 
    Roll = entity():angles():roll()
    
    then make to angle
    Code:
    Ang = ang(Pitch,Yaw,Roll)*100 or so
    
    and you find out from there
    Yeah, but I need to have the stabilization and stuff like that...

  4. #4
    Wirererer adadr will become famous soon enough adadr's Avatar
    Join Date
    Jan 2009
    Location
    South Dakota, USA
    Posts
    293
    Blog Entries
    3

    Default Re: Hyperaccurate Turret

    Quote Originally Posted by xixo12e View Post
    Yeah, but I need to have the stabilization and stuff like that...
    you can change physical properties or find out how to make it go above your head its not that hard.

  5. #5
    Wirererer xixo12e is on a distinguished road xixo12e's Avatar
    Join Date
    Feb 2009
    Posts
    204

    Default Re: Hyperaccurate Turret

    You cant just have it applyOffsetForce, you need to have an anti-wobble system.

  6. #6
    Wirererer adadr will become famous soon enough adadr's Avatar
    Join Date
    Jan 2009
    Location
    South Dakota, USA
    Posts
    293
    Blog Entries
    3

    Default Re: Hyperaccurate Turret

    Quote Originally Posted by xixo12e View Post
    You cant just have it applyOffsetForce, you need to have an anti-wobble system.
    dude, its applyAngForce it applies force to the angle trust me i know what im doing read my first post again

  7. #7
    Wirererer xixo12e is on a distinguished road xixo12e's Avatar
    Join Date
    Feb 2009
    Posts
    204

    Default Re: Hyperaccurate Turret

    I need one that does inertia countering, AKA it doesn't just work standing still, but it will work ballsocketed to a 100mph jet.
    Last edited by xixo12e; 07-04-2009 at 12:21 AM.

  8. #8
    Lurker RabidCrab is on a distinguished road RabidCrab's Avatar
    Join Date
    Jan 2008
    Location
    Oregon
    Posts
    90

    Default Re: Hyperaccurate Turret

    Use adadr's rotational applyforce and ballsocket the thing to the jet.

    Next time, try bothering to at least test out the suggestions people post before you tell them it doesn't work.
    I'm named after the crustacean, not the STD.




    All my crap is built on Drunkie's server

  9. #9
    Lurker Snowden42 is on a distinguished road Snowden42's Avatar
    Join Date
    May 2009
    Posts
    64

    Default Re: Hyperaccurate Turret

    You can do several things, of which few I understand. You can use, for stabilization:

    -A PID Controller, which uses Calculus so I can't help you there, but someone was showing one off on these forums and seemed fairly user friendly.
    -The stabilization formula proposed earlier that uses a delta.
    -OR, what I recommend, is you use inertia to compensate for rotational change, but, once again, don't really understand it.
    Quote Originally Posted by Echo51 View Post
    Told many people that myself, I feel nooblishious

  10. #10
    Wirererer xixo12e is on a distinguished road xixo12e's Avatar
    Join Date
    Feb 2009
    Posts
    204

    Default Re: Hyperaccurate Turret

    Quote Originally Posted by Snowden42 View Post
    You can do several things, of which few I understand. You can use, for stabilization:

    -A PID Controller, which uses Calculus so I can't help you there, but someone was showing one off on these forums and seemed fairly user friendly.
    -The stabilization formula proposed earlier that uses a delta.
    -OR, what I recommend, is you use inertia to compensate for rotational change, but, once again, don't really understand it.
    That's the thing, I need some help.

+ Reply to Thread
Page 1 of 2 1 2 LastLast

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