JU TPS Documentation
  • 🤩Welcome to JU TPS
  • 😄Quick Start
    • How to start a new scene
    • How to create a JU Character / Reskin Default Character / Setup New Characters
      • Ragdoll
      • Damageable Body
      • Physical Damage
      • Body Leaning Setup
      • Taking Damage / Healing
      • Footstep System
      • Resizable Capsule Collider
    • 📦 Addon Installer
  • 🎮Game Development
    • Game Styles
      • Third Person Shooter Style
      • First Person Shooter Style
      • Top Down Style
      • 2.5D Sidescroller Style
      • ⚠️Important Info About Cross-Plataform
    • Controls / Inputs
      • JU Input Manager
      • Input Events
    • How to create a Mobile Game with JU TPS
      • Mobile Inputs
    • How to load scene
      • Scene Controller
    • How to use Cover System
    • How to use inventory and add items
      • Inventory in UI
      • How to switch between items
      • How to align weapon rotation
    • How to create weapons and items
      • Prevent gun clipping through walls
      • Creating Projectiles/Bullets
    • How to use Dual Wielding System
    • How to use Armor/Cloth System
    • How to use Vehicle System
      • Standard Vehicle Configuration
      • How to create a Car Controller
      • How to create a Motorcycle Controller
      • Vehicle Engine Sounds
      • Coding Custom Wheeled Vehicles
      • How to enter and exit from a vehicle
    • How to use Gravity Switching
    • How to use Actions/Skill and Animation Events
      • JU TPS State Machine Behaviours
      • JUTPSActions Lib Scripting Reference
    • Camera State Trigger
    • How to use Enemies AI
    • How to use Vehicles AI
  • ⚙️Tools, Utils and Tutorials
    • General Tutorials
      • How to do Ragdoll Fall with Input Event
      • How to disable FPS Aim Mode / Scope / Iron Sight Aim
    • Auto Scripts
    • Icon Generator Tool
    • Destructible Objects System
      • Fracture Generator Tool
    • Pixel Quality Scaler
    • Camera Shake
    • Slow Motion
    • Gizmo Drawer
  • ▶️Video Tutorials
    • How to use JU TPS
  • 💬Discord Community
  • ❓Support | Help
  • 📍Roadmap
  • 🔃Change Log
  • 📦Official Addons
Powered by GitBook
On this page
  • Standard First Step:
  • Standard Vehicle Locomotion Settings
  • Anti-Overturn Checker Parameters
  1. Game Development
  2. How to use Vehicle System

Standard Vehicle Configuration

The JU TPS vehicle class has a base to create any grounded vehicle, you can use the default or create custom vehicles using the base API.

PreviousHow to use Vehicle SystemNextHow to create a Car Controller

Last updated 1 year ago

Standard First Step:

Place the model in the scene > Unpack the prefab > Add colliders, a rigidbody and set vehicle to layer as Vehicle[8]

Standard Vehicle Locomotion Settings

All vehicles have some default properties, like it:

Vehicles already have properties like Engine, Drive Pad and steering control. The base system hasn't wheels because this needs a different implementation by vehicle type (cars and motorcycles for example, let's see it after).

Okay, let's explain some base vehicle properties.

Base vehicle settings.

Base Properties
Description

Use Default Inputs

If enabled, the vehicle can be controlled by the player using the standard input settings.

Character Exiting Position

Used by the character to exit the vehicle (if is inside the vehicle). Is the local position where the character will be positioned when he stops driving.

Engine contains all vehicle accelerating properties.

Engine
Description

Max Forward Speed

Max speed to move to forward.

Max Rear Speed

Max speed to move to backward.

Torque Force

Vehicle acceleration force

Brake Force

Brake force

Acceleration Curve

Represents the engine acceleration force by speed, recommended always set the start as 1 and the end as 0, this makes the vehicle have all acceleration force if is on low speed and very small acceleration if on high speeds, acting as speed limiter too.

Center of Mass

Center of Mass of vehicle, recommended set it to a low value (0, 0, 0) as example, represented as a local position inside the vehicle, it's can help on the stability depending the configuration.

Stores driver control sensitivity.

Drive Pad Smooth
Description

Rise Rate Throttle

Speed to accelerate the vehicle.

Fall Rate Throttle

Speed to decelerate the vehicle.

Rise Rate Steer

Speed to turn the wheel to some direction.

Fall Rate Steer

Speed to reset wheel rotation when not steering.

Rise Rate Brake

Speed to brake.

Fall Rate Brake

Speed to reset brake.

Anti-Overturn Checker Parameters

Some vehicles may have a rollover checker, which returns the car to its original rotation.

🎮