Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:3.8.1

Description

Description:Controls rendering of shot trajectories.

If enabled, the path of any fired projectiles will be indicated by a line whose color represents the speed relative to the bullet's config parameter for typicalSpeed:

  • red: 100-75%
  • yellow: 75-50%
  • green: 50-25%
  • blue: 25-0%

No trajectories are shown for thrown objects.

Syntax

Syntax:showShotTrajectories show
Parameters:
  • show: Boolean - If true, then trajectories are shown. If false, then none are shown, and any previously displayed ones are erased.
Return Value:Nothing

Examples

Examples:
showShotTrajectories true

Additional Information

See also:


Multiplayer:
Problems:If the bullet hits an object very soon after it is fired, the trajectory may not be displayed. Slowing down the setAccTime may help in this situation.

Notes