🚢
Airship
  • Getting Started
    • Welcome to Airship
    • Installing Airship
  • TypeScript
    • Overview
    • AirshipBehaviour
      • Adding Inspector Properties
      • AirshipSingleton
      • Using Component Decorators
      • Accessing Other Components
  • Publishing
    • Publish Game
    • Developer Console
  • Networking
    • Multiplayer
    • Local Server Mode
    • Network Signals
    • Network Functions
    • Network Identity
    • Network Transform
  • Input
    • User Input
      • Actions
      • Keyboard
      • Mouse
    • Proximity Prompts
  • Core Package
    • What is the Core Package?
    • Chat Commands
    • Inventory
    • Spawning Characters
    • Enable / Disable Core Features
  • Physics
    • Physics Settings
    • Physics Layers
  • Platform Services
    • Data Store
      • Locking
    • Cache Store
    • Leaderboards
    • Platform Inventory
    • Server Management
    • Server List
    • Server Transfers
    • Users
    • Parties
    • Matchmaking
    • External Services
  • CHARACTERS
    • Quick Configuration
    • Character Movement System
      • Character Movement Data
      • Character Movement Events
    • Character Camera
      • First Person Camera
      • Simple Usage
      • Camera Structure
      • Default Camera Modes
      • Disabling the Camera System
    • Character Animations
      • Character Blender Animations
      • Character Ragdoll
  • Accessories
    • Accessories Intro
    • Creating Accessories
    • Using Accessories
  • ANIMATIONS
    • Animation Events
  • Optimization
    • Live Game Profiler
    • Reducing Bundle Size
  • Game Settings
    • Game Visibility
  • Other
    • Project Status
    • FAQ
    • DataType Math
    • JS to Luau
    • Tags
    • Terrain
    • AirshipNetworkBehaviour
      • Lifecycle Events
      • ServerRpc
      • ObserversRpc
      • TargetRpc
    • VoxelWorld
      • Voxel World Getting Started
      • Voxel World Tips
      • Prefab Voxels
      • QuarterBlocks
    • Easy Helper Utils
      • Easy Motion
      • Easy Grid Align
      • Easy Look At
      • Easy Shake
      • Easy Destroy
Powered by GitBook
On this page
  • Editor Values
  • Editing In Code
  1. Physics

Physics Settings

PreviousEnable / Disable Core FeaturesNextPhysics Layers

Last updated 8 months ago

Editor Values

Unity's physics engine can be customized through the project settings panel. Only some values are available for games to customize in editor. Other values will need to be modified at runtime via TS code or not at all.

Available to Customize In Editor:

  • Gravity

  • Bounce Threshold

  • Default Max Depenetration Velocity

  • Sleep Threshold

  • Default Contact Offset

  • Default Solver Iterations

  • Default Solver Velocity Iterations

  • Queries Hit Backfaces

  • Queries Hit Triggers

  • Game Layer Physics Matrix (Any modifications to the core layers in the physics matrix will be overwritten)

Editing In Code

You can edit physics settings at runtime just like you would in C# by accessing the Physics static object.

Physics.gravity = new Vector3(0,-9001, 0);

To modify the physics matrix in code you can use

Physics.IgnoreLayerCollision(17, 18, false);

You can reset all physics settings to the Airship default settings by using the menu button Airship->Misc->Reset Physics To Airship Defaults