Profile image

Controlling AI Vehicles

46.6k PlaneFlightX  2.0 years ago

Video Here

Vehicle Here

I was working on my wing for the SWL-120 (progress update and video coming in a week (hopefully)), and I was wondering, what if I could make a pushback tug, fuel tanker, and even other vehicles.

I now have the answer: Spawnable AI vehicles you can control. Currently this is done using a massive joystick on a block with wheels, but I plan to improve this in the future.

The joystick is on a control base with the variables Pitch1 and Roll1. This is so the AI can't drive the car using Pitch and Roll, and only the joystick can do so. I also have two global variable setters, setting Pitch1 and Roll1 to 0. Without this, the joystick would stay in the position you left it, without snapping back to 0.

This concept can of course be improved in many ways. It's just a proof of concept for controlling AI cars. Another cool idea is making a "parasite", basically a camera on wheels with magnets, which can snap on to things and provide a first/third person camera so you can easily control the car.

  • Log in to leave a comment
  • Profile image
    5,272 TRD

    @PlaneFlightX Here
    Only Throttle1 works somehow, I don't know how to make it work for the control surfaces

    +1 1.9 years ago
  • Profile image
    5,272 TRD

    @PlaneFlightX Wait a second

    +1 1.9 years ago
  • Profile image
    46.6k PlaneFlightX

    @TRD6932 huh. Send it and I'll look at it. I haven't tested this past a block with four wheels and a joystick, but this theoretically should work for all things.

    1.9 years ago
  • Profile image
    5,272 TRD

    @PlaneFlightX Ah okay thanks, just one last question
    Does it work on control surfaces too? I've tried and it didn't, maybe I got something wrong and I thought you could try it for yourself.

    +1 1.9 years ago
  • Profile image
    46.6k PlaneFlightX

    @TRD6932 For the variables, those are actually on the control base (the bit the joystick is attached to). Also note the two setters to 0 in the global variables panel. If you are interested in learning this yourself, download the car (linked at the top of the post) and look at it yourself.

    Also just in case it comes up, you can use any variable you want. I just used Pitch1 and Roll1 to show how they work.

    +2 1.9 years ago
  • Profile image
    5,272 TRD

    @Kwoshent Say no more

    +1 1.9 years ago
  • Profile image
    5,272 TRD

    Hey, so I find this concept interesting. Where do I put the variables Roll1 and Pitch1 on the joystick?

    +1 1.9 years ago
  • Profile image
    16.4k L3FT2R1GHT

    @PlaneFlightX Well I'm blind

    +1 1.9 years ago
  • Profile image
    46.6k PlaneFlightX

    @L3FTxR1GHT There is a link to the build at the top of the post. In giant text.

    +1 1.9 years ago
  • Profile image
    16.4k L3FT2R1GHT

    Could you share this please?

    +1 1.9 years ago
  • Profile image

    @Kwoshent i know because i had problems on my accunt

    +1 2.0 years ago
  • Profile image
    6,939 Kwoshent

    AI plane with a comically large lever throttle and a joystick on the top 💀

    +5 2.0 years ago
  • Profile image
    1,316 WormWithLegs

    This opens the door for some horribly stupid ideas

    +11 2.0 years ago
  • Profile image
    6,939 Kwoshent

    @ThomasdatankV12 your very first comment on SimplePlanes website 🌞

    +1 2.0 years ago
  • Profile image

    IM SO EXCITED ABOUT THE SWL-120

    +1 2.0 years ago