Networking server authoritative player input
I'm trying to do multicrew vehicle and players interacting with levers/buttons, getting in and out of vehicles, etc. To do this I need to collect and pass the player's input state to the server. Is...
View ArticleBest practices for multiplayer multi crew vehicles.
I've been looking around for some advice on how to implement multi-crew vehicles in multiplayer within Unity. Basically vehicles that exist as their own entity and players can hop in and out of...
View ArticleHow to map vehicle beam suspension to wheel positions (from wheel colliders)?
I'm making a truck game. My trucks drive very nicely, and the wheels bobble up and down correctly when the wheel colliders tell them to. However, the axle/drive-shaft (meshes) are currently fixed:...
View ArticleSteer towards target
So, this is somewhat of a loaded question and I will try to do my best to explain it. I am creating a vehicle AI system, and the vehicle has a Steer(x) function. X ranges from -1(steer left) to 1(steer...
View ArticleNullReferenceException: Object reference not set to an instance of an object...
Help i got 2 console error i really confused right now , what did i missed in that script some in line 96 and 146 can you check what i have missed or incorrect symbols using System; using UnityEngine;...
View ArticleTrying to add drive-able vehicles to my multiplayer FPS
I'm a newbie when it comes to coding, and yet I chose to start with networking a multiplayer fps... So far I have the base game set up: Run around and shoot your friend with a gun. I want to add...
View ArticleAny idea how to make an anti-lock braking system a.k.a. ABS?
Hi! I have a really big problem. I use the slightly modified version of Unity 3 Alternate Physics Model. Everything works fine, but under braking the wheels lock up and the car understeers a lot (it...
View ArticleHow would you create multiplayer vehicles?
how would you go about having multiple people in a vehicle, where one player controls the vehicle and the other players locations and camera views are attached to that vehicle?
View ArticleHow To Wiggle A Vehicle Antenna?
Ok so I'm making a tank game. The tank is physics based and works perfectly. The only concern I have is this visual-only effect where an antenna on a vehicle wiggles based on movement. As an example of...
View ArticleCamera rig warning! Auto Cam Script
Hi, I am trying to fix a camera to a car so that when it is driven, the camera will follow. Much to my annoyance, this isn't working for me as easy as I'd hoped. I have the car already active but every...
View ArticleHow do I set a child to active only when the parent is active?
Hello, I checked elsewhere, but I couldn't seem to find a solution. I am creating a game where the player can either be on foot or use vehicles. I used the vehicle hop in/out code to get a start. My...
View ArticleMost Efficient Method for Steering for Vehicle AI
Hi Unity Community! Any tutorial regarding vehicle AI gives the following code for getting the steering magnitude (-1 to 1) to the next waypoint: Vector3 pos =...
View ArticleSave a player created gameobject with children?
I'm trying to figure out how to save and load gameobjects assembled by snapping prefabs to the base object. It's kind of like the system Kerbal Space Program uses. I have the snapping together and...
View ArticleNeed help making only one car drive at a time
I am making an open world game and a want the ability for the player to get in a random vehicle and only that one to drive but currently they all drive lol using UnityEngine; using System.Collections;...
View ArticleHow to make vehicles move in forward AND reverse using a touch to move system
I'm in the process of creating a simple Android game using Unity and Hutong Games PlayMaker, and so far it's going really well. The only drawback I've come across is the movement of my vehicles, of...
View ArticleAssets Question
Can I use the Unity 5 Standard Assets - Vehicles, for my game I'm going to sell for money? I'm am going to change the model of it, just really want to use the script. also How about all the others...
View ArticleCar falling down and down in the terrain??
hi I am a beginner in unity and making a car game for pc in a hilly area.I have download a car prefab and move it in view and i also assigned a first person controller to the view and then drag that...
View ArticleWhat should my Polygon Budget be?
Hello I am currently developing a Racing Game for Desktop. It will not just be cars, but also planes, motorbikes and F1 cars. There will never be any more than 8 cars in the scene at once. The...
View ArticleEnter/Exit Vehicle With UNet
All the topic's I've viewed so far are not what I want. I currently have a good, dependable script for entering and exiting a vehicle in singleplayer, but I'm at a total loss trying to network it....
View Article