+ Reply to Thread
Results 1 to 9 of 9

Thread: Z axis following drone

  1. #1
    Wire Noob -XI- is on a distinguished road -XI-'s Avatar
    Join Date
    Jun 2007
    Location
    Switzerland
    Posts
    29

    Default

    Hello,

    I'm trying to make a small camera drone, wich would be able to follow a player or an NPC. I could easily make it follow the X and Y position, but I don't know how to make it follow his target along Z axis.

    If I put hoverballs on Z coordinates + 200 (if I want it to stay 200 over his target), it's going up and down faster and faster.

    How can I make it more accurate?

  2. #2
    Not a bot itsbth is on a distinguished road itsbth's Avatar
    Join Date
    Feb 2007
    Location
    Norway
    Posts
    488

    Default

    Hoverball = Sign(TargetZOffset + 200)
    My blog | WireQDB
    <Fox682> itsbot: follow the white rabbit
    <ITSBOT> i don't want to follow that.

  3. #3
    Wire Noob -XI- is on a distinguished road -XI-'s Avatar
    Join Date
    Jun 2007
    Location
    Switzerland
    Posts
    29

    Default

    Thanks for your reply.

    The problem is still here, it keeps moving up and down

    I don't know how to stop these movements...

  4. #4
    Wire Noob -XI- is on a distinguished road -XI-'s Avatar
    Join Date
    Jun 2007
    Location
    Switzerland
    Posts
    29

    Default

    here's the problem:

    [ame="http://www.youtube.com/watch?v=sPJmZjToY1g"]http://www.youtube.com/watch?v=sPJmZjToY1g[/ame]

    how can I fix that?

  5. #5
    Not a bot itsbth is on a distinguished road itsbth's Avatar
    Join Date
    Feb 2007
    Location
    Norway
    Posts
    488

    Default

    if abs(TargetZOffset) > Deadzone then
    Hoverball = Sign(TargetZOffset + 200)
    else
    Hoverball = 0
    end
    My blog | WireQDB
    <Fox682> itsbot: follow the white rabbit
    <ITSBOT> i don't want to follow that.

  6. #6
    Wire Noob -XI- is on a distinguished road -XI-'s Avatar
    Join Date
    Jun 2007
    Location
    Switzerland
    Posts
    29

    Default

    thanks, I'll try that as soon as I can

  7. #7
    Inactive evilclown is on a distinguished road evilclown's Avatar
    Join Date
    Apr 2007
    Location
    Whittier
    Posts
    46

    Default

    you could trying using a delta gate.
    thoose work great
    <div align="center">[url="http://www.myspace.com/elysia"][img]http://planetswitch.com/pictures/elysia-digditch.jpg[/img][/url]</div>

  8. #8
    Inactive tstorlien is on a distinguished road tstorlien's Avatar
    Join Date
    May 2007
    Posts
    12

    Default

    The problem is that your hoverballs are too strong, so they cant home in on a specific altitude, they zoom past before they notice they have gone past, and fire the opposite way to counter, which ofcourse pushes it back below its intended target.. Repeat ad nauseum. I've found that decreasing the hoverball power, air resistance, and contraption weight are all usually required to stabilize on the Z axis.

  9. #9
    Inactive Bag Of Minge is on a distinguished road Bag Of Minge's Avatar
    Join Date
    May 2007
    Posts
    18

    Default

    That, Or it is very happy

+ Reply to Thread

Similar Threads

  1. The Drone-It Launcher
    By Vivid in forum Contraptions & Saves
    Replies: 7
    Last Post: 03-01-2009, 12:20 PM
  2. P.H.A.D. (personal healing and assistance drone)
    By Neonvyper in forum Contraptions & Saves
    Replies: 7
    Last Post: 02-02-2009, 03:38 PM
  3. Gun Drone Suggestion
    By keel75 in forum Ideas & Suggestions
    Replies: 9
    Last Post: 12-08-2008, 08:38 AM
  4. Spy drone of sorts
    By miron in forum Ideas & Suggestions
    Replies: 1
    Last Post: 01-29-2008, 02:38 PM
  5. drone launcher
    By luke9511 in forum Help & Support
    Replies: 9
    Last Post: 10-03-2007, 03:12 AM

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