tyVehicleTurret Helper

The tyVehicleTurret helper defines a turret that can be attached to a vehicle chassis, and can swivel horizontally - optionally carrying a tyVehicleTurretBarrel that can pivot vertically and fire projectiles.

tyVehicleTurret helpers are created from a tyVehicleChassis helper’s “Create chassis part…” menu, not from the Create panel.


Dimensions

  • Length/width/height: the dimensions of the turret.

Pressing the “transform” button will temporarily sever the parent/child relationship between the helper and its children (ex: meshes parented to it), allowing you to move/rotate/scale the helper without affecting its children. This allows you to do things like reposition the helper without moving its children with it. Depressing the “transform” button will restore the prior parent/child relationship.

The “fit…” menu has options which allow you to match the position/orientation/scale of the helper to its child meshes.

The “flip” button will flip the transform of the helper along its dominant axis, without affecting its children.

Barrel

  • Barrel: the optional tyVehicleTurretBarrel helper attached to this turret.

Swivel

  • Accel/decel response: controls how quickly the turret’s swivel speeds up or slows down toward its commanded speed, rather than changing instantly.

  • Speed: the turret’s maximum swivel speed.

AI
  • Auto-swivel towards goal: when enabled, an AI-controlled vehicle’s turret will automatically swivel to aim toward its current goal.

PhysX

  • Mass: the mass of the turret’s rigid body.

  • Stiffness/damping: the stiffness and damping of the joint connecting the turret to its chassis.

Convex hull
  • Convex hull mode: controls which geometry is used to generate the turret’s collision hull.

From helper: the convex hull of the turret will be generated from the helper’s stand-in geometry.

From linked meshes: the convex hull of the turret will be generated from the meshes parented to the turret.

  • Split mesh elements: when enabled, separate mesh elements within the specified hull geometry will be used to create a compound collider composed of multiple convex hulls, rather than being combined into a single hull.

Interactive control

Keyboard
  • Swivel left/right: assigns the keyboard key used to manually swivel the turret in each direction.

You can click the “assign key by key press” button next to any key setting, followed by pressing the desired keyboard key, in order to quickly re-assign keys, rather than having to manually find the desired key in the associated dropdown menu.