Search Unity

  1. Click here to see what's on sale for the "Best of Super Sale" on the Asset Store
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Assets [RELEASED] Sci-Fi Ship Controller - A versatile physics-based controller with playable demos, AI...

Discussion in 'Works In Progress' started by sstrong, Dec 7, 2018.

  1. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    In Sci-Fi Ship Controller version 1.2.0 we are adding support for background stars with Universal Render Pipeline (URP). Previously, our celestials script only worked with the build-in RP. Here is a quick video using our Asteroid demo scene.
     
    docsavage likes this.
  2. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Here is what we delivered as part of Sci-Fi Ship Controller 1.1.9 which is now available in the asset store.

    [NEW] Sample Change Camera View script
    [NEW] Ship Beam weapons
    [NEW] Destruct Module in technical preview
    [NEW] Radar - Ship Damage Regions can be tracked
    [NEW] Auto Targeting Module - include Ship Damage Regions in possible targets
    [NEW] Ship Display Module - customisable gauges with API
    [NEW] Player Input Module - call your own code with Custom Player Inputs
    [NEW] Ship Camera Module - camera shake in technical preview
    [NEW] Surface Turret Module - editor runtime debugging option
    [NEW] SampleShowShipMetrics script demonstrates creating gauges in code with API
    [NEW] Sound FX - Thruster and Explosions
    [FIXED] Ship Control Module - fixed weapon gizmos are incorrect when ship is rotated
    [FIXED] Radar - NullReferenceException when ship to follow is destroyed and not respawned
    [FIXED] Auto Targeting Module - Display Targets should not be shown if the HUD is not shown
    [FIXED] Auto Targeting Module - Targets may not be included when Squadrons to Include is set
    [FIXED] Player Input Module - NullReference on undo for Rewired Custom Inputs
    [FIXED] Ship Display Module - ArgumentOutOfRangeException when adding gauges in code
    [IMPROVED] Ship Damage Regions - (destruction) effects can optionally follow a moving ship
    [IMPROVED] Radar is out of technical preview
    [IMPROVED] Radar - change the mini-map canvas sort order
     
    Blackbox514 and docsavage like this.
  3. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Real soon now (promise) we will be releasing the full playable SSC Tech2 demo game as part of Sci-Fi Ship Controller.

    Existing customers can get it now through the beta program or wait for the 1.2.0 release.

    1.2.0 Beta 3a contains:

    [NEW] Full playable SSC Tech2 demo game
    [FIXED] Player Input Module - CustomPlayerInput does not contain a definition for actionIDsPositive
    [IMPROVED] Change display or screen output with HUD, Ship Camera Module, and Radar via API.
    [IMPROVED] Celestials (background stars) script supports Universal Render Pipeline
     
    docsavage likes this.
  4. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Tech Demo 2 – Part 3

    Catch-up - Part 1 Part 2

    Standalone free to play game: SSC Tech 2

    Ship Docking, or rather undocking, is an important aspect of gameplay in Tech Demo 2. All AI ships use one of the Ship Docking Stations to launch.

    upload_2020-10-2_9-46-7.png

    Squadron C enemy ships are spawned at one of 12 pre-configured docking points within a hangar that is located in the citadel. We use a InitialiseSquadron() method to spawn them and assign them to the next available docking point within the hangar. Using the respawning feature of SSC, we tell them to respawn at this location if destroyed in combat. When a ship is destroyed, we get notified and can take action like begin the undocking process. This is handled by a call-back which in turn calls GetNewInstructions().

    When ships undock, they fly out of the hangar on a pre-configured path which was set up in SSCManager within the editor. As they are AI ships, naturally they know how to follow a path.

    When the ships get to the end of the exit path from the hangar, they once again GetNewInstructions(), like attack the invading ships - which includes you!

    NOTE: You get access to all assets and code used to make this game as part of Sci-Fi Ship Controller 1.2.0 or newer.
     
    docsavage likes this.
  5. Exeneva

    Exeneva

    Joined:
    Dec 7, 2013
    Posts:
    366
    How suitable is this for a top-down arcade-like shooter?
     
  6. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Can't think of any reason why you couldn't configure it for that style.
     
  7. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Sci-Fi Ship Controller version 1.2.0 is now live in the Asset Store!

    This release includes the full SSC Tech2 game for PC. Check it out under Demos\TechDemo.
     
  8. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    A few people have been asking about a 2.5D-like configuration for Sci-Fi Ship Controller. We are considering adding a checkbox type option for this.

    Let us know if you'd find this helpful and if you'd want to see other options associated with this.
     
    docsavage likes this.
  9. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Controlling doors, landing gear etc.

    For Sci-Fi Ship Controller 1.2.1, we're upgrading the SSCDoorAnimator script to enable you to control multiple doors and "stuff". For example, you could:
    • Open hangar doors
    • Open bomb-bay doors on a ship
    • Open/close cockpit canopy
    • Open/close airlock on a space station
    upload_2020-10-6_19-26-27.png

    You could even use it to:
    • extend or retract landing gear
    • change the position of wings on an x-wing like ship
    You can do it from your game code and/or set it up in the editor with a Custom Player Input in the Player Input Module. This example uses the keyboard but you could configure it with whatever controller or Player Input Mode you have configured.

    upload_2020-10-6_19-26-27.png
     

    Attached Files:

  10. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Common Issues
    In our manual (click "Help" on the Ship Control Module), we have a chapter devoted to resolving common scenarios. This is a good place to start if you are having problems as it is updated with each release.

    There is also the Helpful Links post.

    If neither of these areas address your issue, you can post a question in this forum or try our Discord channel.
     
  11. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Tech Demo #3 - Update 1

    Now that Tech Demo #2 has been delivered as part of Sci-Fi Ship Controller, and is available as a free game on PC, Mac and Xbox, we're starting to make progress on our next Tech Demo.

    Just to recap, this is a space station scenario. A small shuttle ship will dock and undock with a space station. Although you can already do this in SSC version 1.2.0, we'd like to tidy up and enhance a few different aspects of docking.
    • Player entry and exit (we have a cool controller under development **)
    • A quick way of triggering door/hatch/wing position/landing gear animations (mostly done)
    • Transfer player control to AI control for docking maneuvers
    We are keen to streamline the ability for the player to transfer control to and from AI control. If you can think of scenarios (other than docking/undocking) please let us know as we'd be happy to take them into consideration).

    ** We may release this as a separate asset - we haven't decided yet. If we do we'll make it a very cheap upgrade from SSC.
     
  12. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Tech Demo 2 - Part 4 - Type of Game Play Loop

    Recap - Part 1 Part 2 Part 3

    Standalone free to play game: SSC Tech 2

    There are at least two different versions of game play. The first, and arguably the most common, is a game controller (script or group of scripts), that tell the "characters" how to play.

    The second, is where the characters are autonomous and do what they "think" is the "right" thing to do next. Each character runs their own game loop and interact with things or other characters around them.

    Tech Demo 2 uses the first approach with a hint of the second approach. That is, there is a main controller that runs the game. This loop tells the characters (in our case ships, docking stations, and turrets), what they should be doing at any point in the game. For example, Squadron A should attack Squadron C etc.

    The player (that's you) gets to run their own player "loop" within the boundaries of the main game controller. For example, you could decide not to follow the on-screen instructions and not follow the other friendly ships to the citadel. But that probably won't end so well.

    Within the main game loop, the AI Ships get to be semi-autonomous. Yes, they still need to perform the action they were told to, but they use their own in-built AI system to carry out that action. And if they are not sure what to do next, they ask.

    You can change the way the game progresses by say destroying the enemy turrets, fending off the enemy ships and ultimately stopping the enemy capital ship from escaping. However, you can also do things like pause and unpause the game, restart the scene or (gasp), quit the game... and be inspired to create your own game!
     
    Last edited: Oct 8, 2020
  13. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    We are currently offering a bundle plus some upgrades for people that want to purchase multiple assets.

    LB_SSC_Bundle1950x1300.png

    See the bundle here.
     
  14. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    We have started work on the dedicated 2.5D option for Sci-Fi Ship Controller (SSC).

    Essentially, this allow you to very quickly configure SSC player and AI ships to work in a 2.5D environment. A 2.5D setup works in a 3D world but moves the ships in 2D. We will allow ships to say roll left and right but they will be constrained on one axis.
     
  15. cassius

    cassius

    Joined:
    Aug 5, 2012
    Posts:
    52
    sstrong likes this.
  16. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    That is a very cool looking game! Let us know if you need any additional features or assistance from the Sci-Fi Ship Controller developers.

    When coming up with names for SSC, we considered names like Sci-Fi Craft Controller and Sci-Fi Vehicle Controller but settled on the current name. So, your game style actually does fit well. I like the way you've made a flying game that doesn't just go round blowing stuff up.

    BTW - your graphics and 3D environment is amazing, especially given you don't have a team of 100 devs. Well done!
     
    cassius likes this.
  17. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Docking (landing) Tips

    While working on Tech Demo 3, I noticed that my shuttle wouldn't dock with the space station docking point. It would get really close but then seem to sit there and do nothing.

    A good place to start was to turn off "Maximize on Play" on the Unity Game view. Then when in play mode, on my Shuttle, I enabled "Debug Mode" on both the "Ship Docking" and "Ship AI Input Module" components.

    Then I flew the shuttle towards the space station and pressed the button which I'd setup with a Custom Player Input to start the docking manoeuvre. On Ship Docking, the "Current State" changed from NotDocked, to Docking, but never became Docked. My Ship AI component went from Idle to Docking but never returned to Idle.

    I noticed that the Desired Local Velocity was never exactly 0,0,0 and the Current Local Velocity kept changing by small amounts. My AI ship component was trying to move the shuttle to the docking point by it couldn't. If I came out of play mode, changed the "Landing Distance Precision" to a bigger value (0.5 metre), it worked fine (although didn't look great).

    Looking at my Thrusters, I realised I didn't have a Backward Thruster, and that my Left and Right Thrusters only had Max Thrust of 20. Making sure I had a Thruster in every direction, and that they all had enough power to move my shuttle, resolved the docking problem. Now I could have a Landing Distance Precision of 0.01.
     
  18. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Pooled Sound FX

    Sci-Fi Ship Controller makes extensive use of our SSCManager and pooling system to efficiently manage projectiles, particles, and sound effects at runtime.

    Sometimes you may want to create a sound at a particular position when something happens. For example, when you raise or lower landing gear, open cargo bay doors, or close an airlock etc. In SSC v1.2.1 we are adding API methods so that you can:
    • Create your own sound fx pool with GetorCreateEffectsPool(..)
    • Play the pooled sound fx with InstantiateSoundFX(..)
    At runtime, you will also be able to change the audio clip, set the volume etc.
     
  19. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Feedback Request - Entry/Exit and character controllers

    As we expand the features of Sci-Fi Ship Controller, we are investigating more ship entry / exit scenarios. In Tech Demo 3, we have a 1st person character controller (Sticky3D Controller**) who can walk around a moving shuttle, activate docking with a space station, open airlocks and walking into the space station.

    However, we're keen to learn about your ship entry and exit requirements.
    • What character controllers are you using?
    • How do you want it to interact with SSC space or sci-fi craft?
    • What camera setup do you have?
    • What gamepad or controller input are you using?
    • Do you have a screen shot or video to share?
    ** Sticky3D Controller is the working title of our character controller that can walk around moving rigidbodies.

    Give us your thoughts here or on our Discord channel.
     
    Last edited: Oct 20, 2020
  20. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Flexible User Input

    Let's face it, writing user-input code is rarely fun. That's why we include a dedicated Player Input Module which can feed input to your flying ships. However, it can also perform custom actions like call your own custom code, call some SSC API method or even a 3rd party method. With a few clicks you can configure a Custom Player Input in our module.

    upload_2020-10-21_16-51-18.png

    What's more, you can use any kind of input we support to trigger it.
     
  21. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Player AI-Assisted Docking - Coming in Sci-Fi Ship Controller 1.2.1

    Player ships can already dock and undock with docking stations.

    A human player ship that use the Player Input Module will be able to use the Ship AI Input Module to help them dock and undock with a docking station. This is different than using the “Docking Input Button” in the Player Input Module which will immediately set the docking state to either “Docked” or “Undocked”.

    The player ship must have the following components:
    • Ship Control Module
    • Player Input Module
    • Ship Docking
    • Ship AI Input Module
    You can configure the player to either press a single button to toggle docking and undocking or you can configure two buttons, one for docking and the other for undocking. Both methods use Custom Player Inputs.
     
  22. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Camera Object and Wall Clipping

    Coming in Sci-Fi Ship Controller 1.2.1 is the ability to avoid objects between the camera and the ship or sci-fi craft.

    upload_2020-10-30_9-22-8.png

    When objects are located between the camera and the ship we (quickly) want to adjust where the camera is so that the object doesn't obscure our vision.

    When you have small objects in your scene, generally it is better for the camera to "fly right through them" than to constantly be adjusting the camera. For these small objects, place them in separate Unity Layers and turn them off in "Clip Object Layers".

    When inside a cockpit or on the bridge of a capital ship you should turn this feature off.
     
  23. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Coming in Sci-Fi Ship Controller 1.2.1

    upload_2020-11-4_16-55-2.png

    If you have a 3D environment but would like to constrain the ship on the x or y axis to achieve 2.5D-like flight, then this will help you achieve that.
     
  24. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Sci-Fi Ship Controller 1.2.1 has been submitted to Unity for review.

    upload_2020-11-10_9-6-47.png

    It includes the following updates:

    [NEW] Shield Recharge - damage regions have optional shield recharge rate and delay
    [NEW] Ship Control Module - Input Control to achieve 2.5D flight behaviour
    [NEW] SampleFlyToPosition - AI sample script
    [NEW] Ship AI Input Module - Button to estimate the radius of a ship for obstacle avoidance
    [NEW] Ship Camera Module - can stop camera rendering and moving at initialisation time
    [NEW] Ship Camera Module - Clip Objects is in Technical Preview
    [FIXED] PlayerInputModule - Custom Player Input Negative Key for Direct Keyboard not working
    [FIXED] ShipDisplayModule - Gauge Keep Aspect Ratio is incorrect after (I)nserting within the editor
    [IMPROVED] ShipDocking supports docking manoeuvres with and without entry or exit paths
    [IMPROVED] ShipDocking - option to detect collisions when docked
    [IMPROVED] PlayerInputModule - can disable input on initialise
     
    julianr likes this.
  25. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Sci-Fi Ship Controller 1.2.1 is now available for download from the Asset Store
     
    julianr likes this.
  26. Flawless83

    Flawless83

    Joined:
    Dec 7, 2016
    Posts:
    87
    can this aset be used to make a race game like wipeout, is the hovercraft controler ready for use for racing?
     
  27. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Yes. There is a sample anti-gravity scene included. There is also a playable mini-game that was made from that demo scene.

    AG SSC Racer

    The asset can be configured for many different styles including anti-gravity racing games (like wipeout). Then, you can adjust the flight behaviour to suite your particular requirements.
     
  28. Flawless83

    Flawless83

    Joined:
    Dec 7, 2016
    Posts:
    87
    i tried download that game from microsoft store to pc but i cant click anything with my mouse and keyboard dont work so cant stat level and dont now if u get it started if it would work with keyboard?

    Edit: got it to work, the start button wasnt were it showed it was a litle bit up above button i had to click, dunno what that is.

    So i tested it the controller seemed a litle stiff also landing seemed to hard.
     
  29. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    There are 3 versions. The Xbox version available from the Microsoft Store which requires an Xbox controller (this should also work on PC with a controller - however, it hasn't been tested). There is also a Windows 10 Desktop version and a Mac OS X version. These two are available from our website.

    Remember, that AG SSC Racer is just one possible configuration. You can set up the flight behaviour however you want it. We make the flight behaviour and feel very flexible. If you don't like how it works in the mini-game, as the game developer, you can change it either in the editor or via our APIs in code.
     
  30. Flawless83

    Flawless83

    Joined:
    Dec 7, 2016
    Posts:
    87
    i dont now ho made this video or scripts, but can this be achived?

     
  31. sstrong

    sstrong

    Joined:
    Oct 16, 2013
    Posts:
    1,572
    Yes, you could make something like the video above. You would need to create a menu with sliders etc using the Unity UI (canvas system) - if that is what you want. How the ship behaves depends on how you set it up in SSC. As a starting point you could use the ship from the anti-gravity demo scene.
    You would also need to build tracks to race on. Again, as a starting point you could use the AG demo scene for initial testing.
     
  32. Flawless83

    Flawless83

    Joined:
    Dec 7, 2016
    Posts:
    87
    but i only mean the controlls, thats what im interested in, so i can make it feel like the video above? then i might get your asset, cause thats how i want it to behave.
     
  33. Stamson

    Stamson

    Joined:
    Oct 31, 2020
    Posts:
    1
    Excited for Tech Demo 3! Any kind of combination of player movement combined with space ships would be neat. Like a bigger ship that has an interior that you could walk around in as the ship travels from A to B.
     
    julianr and sstrong like this.
  34. julianr

    julianr

    Joined:
    Jun 5, 2014
    Posts:
    1,160
    Same. I did this by Having a full scale version under the terrain that you could walk around when not in the pilots seat, with cameras attached to the flying version, with video screens at each angle where there is a window, basically cameras views switched on/off. As often the scale and poly count would be massive on a flying version, unless you culled it all.
     
unityunity