Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. We're running great holiday deals on subscriptions, swag and Asset Store packages! Take a peek at this blog for more information!
    Dismiss Notice
  3. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  4. Unity 2017.2 is now released.
    Dismiss Notice
  5. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  6. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  8. Unity 2017.3 beta is now available for download.
    Dismiss Notice

Usim flight module in Asset Store

Discussion in 'Made With Unity' started by Gabo_campitelli, Mar 9, 2014.

  1. gibmation

    gibmation

    Joined:
    Dec 1, 2014
    Posts:
    305
    Hi Gabo thanks for the comprehensive reply

    Will try all this out.
    Instead of reversing RPM some sort of gear/clutch system to control direction of prop/thrust, jet planes use reverse thrust to slow down, and some large prop planes use this to reverse the a/c, maybe something for future ver.

    Thanks will test, although maneuvering a two engine tug might require a third hand o_O. My aim is to be able to control having a joystick per engine.

    Agreed, this is using particles to generate rope, does not seem to affect performance that much.

    Cant get the wooden boat to react when I click on the buttons just moves forward. In any case I have not looked into this that much as I am using my own script for bow thrusters.

    Thanks will try this.

    So sectionheight would = the ships waterline?

    Maybe some sort of ILS at runways to create some sort of curve/spline which an a/c can follow as a glide path.

    Thanks for your help.
     
  2. khos

    khos

    Joined:
    May 10, 2016
    Posts:
    354
    Hi Gabriel, I'm trying to figure out how to add the RC model to the Demo Scene, I've got everything imported, but when playing and using the mouse or standard controller nothing seems to happen. I used the auto configure inputs options.. nothing, in play mode what key should I press the start the motor? :) Do I need to setup the Unity Inputs manually to match the input manager?

    Also is is there a way to automatically setup an aircraft (at runtime?) so things like airfoils can match wings automatically? for any model, or must this be a manual process in Editor ? Thanks for any help/advice.
     
  3. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    233
    Hello,

    To add a new vehicle just increase the availableVehicles array size and add the prefab reference. once you start the flight press F5 for mouse, or F6 for standard inputs. By default E key is engine starter. If you ran the inputs installation they should be setup. To do so go to window/usim/auto-configure inputs. And then restart the project.

    Unfortunately there's no runtime support other than the demo menu. Althou not sure about the question it self. If you are after procedural vehicle building you will have to handle it on your end. however usim components can be interchanged. For example you can have serval wing prefabs and have a function that sets up the references needed. The current design is set to be initialized as a hole at start but you can easily make a custom runtime managment.

    Hope it helps, let me know how it goes.
     
  4. khos

    khos

    Joined:
    May 10, 2016
    Posts:
    354
    Cool, many thanks, I managed to get the RC plane working into the demo scene, I suppose this is just your demo, but if I press e again should the engine stop?

    Prefabs and my custom planes is doable, many thanks :)

    With a Paraglider model I have a flexible cloth mesh to act as the wing, I suppose for that I will need to set things differently there, act like two or three segments together.
     
  5. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    233
    There's no key shortcut for shuting the engine down. But either seting contact bool on the engine to false or shuting down fuel feed will do. See b17 panel example how red buttons on each engine cuts each engine fuel feed. E key just energizes the starter. No automatic routine attached.

    For a wing like a parachute/paraglider i guess you can attach serval segments together via physical joints and each portion have it own aerodynamics acting on it self. See that components that act on rigidbodies can have the target rigidbody assigned.

    cheers!
     
  6. gibmation

    gibmation

    Joined:
    Dec 1, 2014
    Posts:
    305
    Hi Gabo any news on this?
    Thanks
     
  7. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    233
    Hi,

    Yes, i have a basic towing line setup using line rendering. althou i need to add some more visual realism to it to have proper feedback on the tension of the line. But so far i have the line and anchoring points.

    I will try to add this on 1.42b right now i have submited version 1.41b wich includes helicopter controller and an Apache helicopter template.

    version 1.41b
    * Added helicopters support (beta) and example Apache helicopter.
    * colective pitch added. by default W and S.
    * Added amphibious land vehicle example.
    * Some improvements to inputs based AI flare routine.
    * Added minimal range to 3d throttle animation.
    * Fixed an issue in suspension directionality.

    I will try to add more of the requested features on 1.42b. I apollogize to those that are waiting on thos features.


    Cheers!
     
    Last edited: Aug 18, 2017
    Bartolomeus755 likes this.
  8. longroadhwy

    longroadhwy

    Joined:
    May 4, 2014
    Posts:
    1,236
    Wow. Nice update. Looking forward to trying out the new helicopter controls.
     
  9. gibmation

    gibmation

    Joined:
    Dec 1, 2014
    Posts:
    305
    Great, looking forward to the update!
     
  10. Ascensi

    Ascensi

    Joined:
    Sep 7, 2013
    Posts:
    344
    By any chance would this package work for helicopters ?

    Lastly I aim to use the asset "Vive Grip" so the player actually reaches out with the vive controller to work the yoke, push buttons etc would you be able to add support for physical controls? I would pay a lot more than what you're asking for on the store to get this system created.
     
  11. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    233
    Hi Ascensi!

    Unfortunately i don't have any VR gear, therefore i haven't had that in mind. But if world space UI can be used, then you have it. All 3d gauges and buttons are made with Unity UI. However the control joke moves as a reaction to input and not the other way arround. But it's not something that can't be changed. All you need is to add the controller for it and override other inputs.
    If you need the asset to be customized we can arrange something out. contact me at gabriel.campitelli@gmail.com

    Helicopters support has been added in last version, but i'm having an issue with unity editor when uploading the package. Hope to have this solved this week. New version will come with an Apache helicopter template.

    Cheers!
     
  12. Ascensi

    Ascensi

    Joined:
    Sep 7, 2013
    Posts:
    344
    I sent you an email describing what my goal is which may be a little more than what your able or willing to do but yea just for a version to use physical controls I'd pay more and beyond that to enrich your asset I added details of what I'm able/willing to contribute to help make this package have another incentive for new & existing customers.
    -anything I can do to keep it going strong ;)


     
  13. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    233
    Hello,

    The last version is up wich mainly introduces helicopter simulation features.
    The helicopter controller added collective pitch input wich by default is Q and A. Collective pitch is controls how much "air" or lift is translated from the rotor. So you need to use both throttle to spin up the rotor and collective pitch to either add or decrease lift. Main rotor can be added with airfoil component as it is in real rotorcrafts, so it start behaving more like an aircraft with enough speed.
    Take in mind that helicpoters are in beta state and any feedback is wellcome.

    version 1.41b changes
    * Added helicopters support (beta) and example Apache helicopter
    * colective pitch added. by default Q and A
    * Added amphibious land vehicle example
    * Some improvements to inputs based AI flare routine.
    * Added minimal range to 3d throttle animation.
    * Fixed an issue in suspension directionality.

    Play last demo here: http://www.softdimensiongames.com/

    Thanks!
     
  14. ZealousAppex

    ZealousAppex

    Joined:
    May 3, 2015
    Posts:
    11
    HI,
    I've been looking at a number of different water and boat physics for SteamVR.
    I would like to use PlayWay and uSim to create a VR boating game. I was thinking of using the SteamVR to grab the wheel and throttle. Does any one have an suggestions if this will work well, is it as simple as placing the Player as a child of the boat and getting the rotation of the wheel and throttle and pass these to some class?
    Thanks for any help!
     
  15. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    233
    Hello ZealousAppex

    This feature is on the design table at the moment to be included in the future. But there's still much to do before i go into virtual cockpit. But it doesn't mean it's dificult.

    As long as you handle VR interaction you can use InputsManager class on the vehicle to acces and set the inputs directly.
    Just take in mind that when it comes to simulations you will be using large distances and therefore poor float precision. (shaking objects)
    So the best aprouch is, in my opinion, haveing a virtual cockpit layer/model wich will stay at position 0,0,0 all the time and just follow the vehicle rotation. Sim camera and virtual cockpit camera rotation should also de synced. Then as in FPS where you have a camera for rendering the hands and weapons first, you would setup the virtual cockpit layer to be drawn first and then the simulation camera in the background.
    Then you have a solid platform to wirk with VR interactions in cockpit local space.

    But in the current state of uSim framework you will have to handle the controls outputs in your own way. Once you have a control attached to the VR hand you should be able to read either position or rotation of the objects to produce the correct output for the vehicle inputs.

    I have been asked to add this type of support but since i don't have VR experience i can just especulate. But i can tell you that uSim inputs management is completely open.

    Hope it helps!
     
  16. gibmation

    gibmation

    Joined:
    Dec 1, 2014
    Posts:
    305
    Hi Gabo any news on when this will be available?
    Thanks
    G.
     
  17. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    233
    Hi! I'va added to the package, next update will be with it but if you need it sooner let me know trough mail. Althou i haven't test it wideley. I'm working on a request for a glider porject wich includes tow by winch and aircraft so the tow line system will have a nice test out in there.
     
  18. khos

    khos

    Joined:
    May 10, 2016
    Posts:
    354
    Sounds like a rally cool idea! The tow line thing, is that a line renderer, will it be flexible the tow line?
     
  19. khos

    khos

    Joined:
    May 10, 2016
    Posts:
    354
    Would it be possible to get a copy of this same scene as in this video, I have purchased your asset a while back but don't really understand howto use it yet (could use a simple video tutorial to get started too)? It's just what I looking for, of course I'll change to my own assets etc later, but it will help me understand how to use your nice asset :)
     
  20. khos

    khos

    Joined:
    May 10, 2016
    Posts:
    354
    EDIT: is this link http://www.softdimensiongames.com/uSim-ADDONS/ to use?
     
  21. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    233
    Hi!

    Yes those templates are free to use at will. You have the RC there.

    This doc should give you all you need to know,
    https://drive.google.com/open?id=0B46wsopXF63OQVc3cTFwZU1QSWc
    I do understand the value of a video tutorial. But i don't want to go down that road before the simulations are settled for good so i don't confuse more than what i can help with a video.

    Yes the visual representation is line renderer based. While the simulation of forces works great (The line force and streching are configurable). i'm trying to improve how to give a descent look to it other than just a point to point line but it has proveen to be complex. Not to mention to have it collide with enviroment. i think that is out of the question. But if one would like to have a complex rope/line rendering i'm pretty sure there are some advenced assets out there that can be used even on top of the towline simulation.
     
  22. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    233
    Hello!

    Just wanted to trow some info on the next update of uSim VSF.
    This next update will be focused on covering some request that i have been asked for some time now and that still haven't got into the package. But there's an important reason for me to have diverted focus from the requests and that's because i have been developing new stuff for the package. Being probably the most important, UNet-ready enviroment. While it woun't include weapons, the idea is to stablish proper base UNet integration. The networking is allready working and i hope to put a build demo in wich we will be able to meet online and fly around.
    As many of the other stuff that i have recently added, it will have to be taken as a "beta" state for that implementation. The reason i tag them as "beta" is because only trough client's test and feedback the systems can properly be settled. There's not much testing one can do when beeing the developer.
    So in the next update UNet enviroment will be added with a new example scene(s), same as i did with the AI.
    Regarding the requests, this are the items to be added in next update.

    - Hopefully, incorporated Unity Inputs configuration as i know many find it hard to get trough inputs installment and i understand the frustation it can cause.

    - Tow line simulation. It can be used for any porpuse really, from towing to anchoring or mooring.
    It's completely independent so integrating it into any custom function is up to the client. But as allways if help is needed just trow me a line.


    - UI controls for ships. This is an old request althou the ship controller is allrady setup to be able to work with UI controls, i haven't added an example to the package.

    - Reverse thrust for propellers. In case of aircrafts, only thrust will be inverted while prop keeps rotating in the same direction. Ships instead will invert both prop turning direction and thrust.


    For those who still don't have the package this will be the last update at the current priceing since it will now include networking implementation. Probably sometime arround new year it will go from $39 to $45 wich was the original price.

    Other stuff that i have been working on and planned for next year are Wind (with effect on airfoils) Thermals and thermal generation system along with a glider template and towing by winch and towing by aircraft examples using the tow line.
    And.... the most tough part at least for me... proper documentation of everything in the package.
    I have been asked a lot to make video tutorials but i don't have proper video making skills or proper spoken english skills. But if anyone is willing to make one i will be happy to help or provide with the package for free as exchange.
    I have been allready asked the package for free for this porpuse but as expected nothing ever happen... So if anyone is serious about this don't hasitate to write me.

    Ok i think that's all for now :)

    Thanks everyone for the continious support and feedback!
    Cheers!
     
    Bartolomeus755 likes this.
  23. Bartolomeus755

    Bartolomeus755

    Joined:
    Jun 20, 2013
    Posts:
    140
    Sounds all great! Looking forward to the multiplayer part, that's very interesting. I like also the tow line simulation, thank you for adding this. And great to see that the reverse thrust for ships will come. So thank you for all your hard work on the uSim packages!

    Regards
    Marko
     
  24. Steve-Tack

    Steve-Tack

    Joined:
    Mar 12, 2013
    Posts:
    1,187
    Hi @Gabo_campitelli, is it possible to create a VTOL aircraft like an Osprey (or even fictional sci-fi one) with this asset?

    I don't have a serious need for that. Mostly just curious.
     
  25. longroadhwy

    longroadhwy

    Joined:
    May 4, 2014
    Posts:
    1,236
    @Gabo_campitelli

    Keep up the good work.

    Speaking of VTOL a Harrier jet would also be cool.
     
  26. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    233
    Thanks! I know you were waiting for this some time :)


    VTOL models should be possible but i haven't done one yet. As for the Osprey, the Apache helicopter flight model can be used as base. But as it is now there's some controller shortcomes for directing the engines. Same goes for the harrier. It's more a matter of thrust vectoring. But i will definetely model one of this VTOL vehicles. Also want to explore with drones.
    sci-fi ships should be also possible. more over there's no restriction on the ships manouver thrusters. You can have those set up with any vehicle too. Althou you would have to come with some gravity manipulator thing instead of the helicopter flight model wich generates thrust to lift the weight rather than cancelling the weight as a sci-fi ship would usually do. (for vertical control). For directinality i guess you need to hack physics there. uSim is aerodynamic based. If i would have to do it, i would first turn the transform then lerp the vehicle velocity towards it's forward direction. But if still want to achieve something like x-wing i guess you can still use aerodynamics and fly it like an aircraft with out gravity.

    Will explore on the subject!
     
  27. khos

    khos

    Joined:
    May 10, 2016
    Posts:
    354
    Can't vtol model be easy to do anyway, just add your own hinge type mechanism to point an existing prop upwards/downwards ? Then the force goes where ever the points to.
     
  28. Steve-Tack

    Steve-Tack

    Joined:
    Mar 12, 2013
    Posts:
    1,187
    Interesting, sounds like there are some possibilities. I've played with the idea of a sci-fi craft that can be used to explore a planet surface with Earth gravity and all. It'd be more like some of the VTOL craft in Halo or some of the VTOL craft in the Marvel movies where the engines are essentially jet engines or Tony Stark magic repulsors or whatever.

    I just used the regular physics engine to produce a force from four engines that could be rotated. In that case, I had to keep the engines at a particular angle to keep the thing afloat, since there were no aerodynamics involved at all.

    I was thinking it could be far more interesting in forward flight mode to have it act more aircraft-like. The vertical part of it could involve simply turning off the fancy stuff and switch to a simple mode with a PID controller to make it easy to land and take off. My thought process was to have an easy-to-play game with easy take-offs and landings, but once airborne and in forward mode, I could transition to a somewhat more realistic sim to make things a bit more interesting.

    I'm nowhere near the point where I'd have that in a real game, but it's fun to experiment.
     
  29. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    233

    Yes that could be one way. Once you have gravity off in the rigidbody things are more open. Props act as thrusters, is not like it has aerodynamics bounds. But when it comes to handling a craft with gravity on, vectoring the thrust can cause vertical thrust to decrease. Ofcourse it could be managed by the pilot but that adds a need for skills. There could be some automatic compensator to it to keep vertical result around the same.
    To keep things simple i would hack rigidbody velocity directly and keep the current forward and sideways velocities while adjusting the vertical velocity. I use this aprouch for the AI to aid it on landing/flareing. Good thing about that is that collisions keep working correctly.
     
  30. longroadhwy

    longroadhwy

    Joined:
    May 4, 2014
    Posts:
    1,236
  31. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    233
    Hey, thanks for the link!

    Looks intresting, althou i'm not at that programming level at all :D
    The way uSim is aprouched it pretty much compute the custom algorithms on CPU and then apply the result force. So i'm only using Rigidbody.AddForce and AddForceAtPosition. But if more of PhysX API is exposed in the future, maybe more doors can open to running collision based aerodynamics simulation. But this still very heavy stuff for runtime simulation. But i would love to come with a sort of wind-tunnel simulation where an airfoil or any shape is run trough "particles" to gather aerodynamic information and output a realistic model. But still learning stuff about fluids dynamics to simplify it enough for computer simulation.
     
  32. joz_nascimento

    joz_nascimento

    Joined:
    Oct 24, 2017
    Posts:
    2
    Hi Campitelli, congratulations. Your asset package seems very interesting. I'm trying develop an air traffic controller ambient and its needs more automated behaviors and less physics. Maybe yours AI and autopilots functions are fit to me?
    Cheers
     
  33. Gabo_campitelli

    Gabo_campitelli

    Joined:
    Oct 17, 2012
    Posts:
    233
    Hi!
    AI in the current stage is based on inputs therefore it still uses physics based flight model. The AI system itself is fast enough but the flight model can eat up CPU resources fast if you have 6 or more AI working at the same time. I have plans to optimize the AI behaviour by having a transform translation based movement that the user can chose to toggle on/off via the API. In most cases it would based on player influense. Inputs based AI gives more realism but it costs more. The idea is to be able to turn the vehicle into a non physics based object and move it directly but for that it needs to have some "stats" so it still behaves somewhat like the physics based vehicle.
    I plan to have this developed on the start of next year.
    What's left of this year i'll be spending it on settling down what allready in the package and the requests i had specially on the sea module. And then my focus will be in the AI and it integration and optimization.
    So, sorry but my honest answer would be, not yet :)
     
  34. joz_nascimento

    joz_nascimento

    Joined:
    Oct 24, 2017
    Posts:
    2
    Thanks Gabo. Then I see that the engine is not for me (for now). I'll be watching
     
  35. longroadhwy

    longroadhwy

    Joined:
    May 4, 2014
    Posts:
    1,236
    UnityFS is no longer available on the asset store.