FORGE3D
  • Welcome
  • FAQ
  • Sci-Fi Effects
    • Getting started
    • Turrets
    • Turret Controller
    • Pool Manager
    • Examples
    • Scripts
    • Changelog
  • Force Field
    • Getting started
    • Force Field Video Tutorial
    • Force Field Controller
    • Rigidbodies
    • Shaders
    • Impact Points
    • Upgrading
    • Platform Differences
    • Changelog
  • Wasp Interdictor
    • VR Setup
    • Controller Components
    • PSD Template
    • Substance Painter Sources
  • Damage FX
    • Shader
    • Controller
    • Colliders
    • Material
    • Debugging damage
    • Impact points
    • Damage FX Shader Node
  • Planets
    • Changelog
Powered by GitBook
On this page
  1. Sci-Fi Effects

Turret Controller

PreviousTurretsNextPool Manager

Last updated 4 years ago

Perfect for any kind games, the redesigned turret controller is now highly customizable including the arc of fire handles and several aiming algorithms.

Before a turret will target anything, you must setup a few things and specify a transform of an object to aim. Let’s have a look at the new options we’ve added to the turret controller with this update:

Debug Target – A transform of an object the turret will aim at

Mount – Specifies the transform of the horizontal tracking component along the heading plane

Swivel – Specifies the transform of the vertical tracking component along the elevation plane

Heading tracking speed – The rate at which the turret can rotate towards target on the horizontal plane

Elevation tracking speed – The rate at which the turret can pivot towards target in the vertical plane

Heading limit – The arc of fire along the horizontal plane. The editor gizmo marked with red

Elevation limit – The arc of fire along the vertical plane. The editor gizmo marked with blue

Smooth controlling – Enables the interpolated tracking algorithm and variable tracking speed. If disabled, the fixed angle rotation is applied

Debug draw – Whether to draw a debug line between the swivel center and the far end point

Animators – Barrel animator list. A subject to improve over the course of the next update