TeleportAimHandlerParabolic Class Reference

This aim handler simulates the parabolic curve that a thrown item would follow, a common style of teleport aiming. More...

Inheritance diagram for TeleportAimHandlerParabolic:
TeleportAimHandler TeleportSupport

Public Member Functions

override void GetPoints (List< Vector3 > points)
 Return the set of points that represent the aiming line. More...
 

Public Attributes

float Range
 Maximum range for aiming. More...
 
float MinimumElevation = -100
 The MinimumElevation is relative to the AimPosition. More...
 
float Gravity = -9.8f
 The Gravity is used in conjunction with AimVelocity and the aim direction to simulate a projectile. More...
 
float AimVelocity = 1
 The AimVelocity is the initial speed of the faked projectile. More...
 
float AimStep = 1
 The AimStep is the how much to subdivide the iteration. More...
 

Additional Inherited Members

- Protected Member Functions inherited from TeleportAimHandler
override void OnEnable ()
 The LocomotionTeleport supports one aim handler at a time. Call the base OnEnable to make sure LocomotionTeleport is valid, then assign the current aim handler to this object. More...
 
override void OnDisable ()
 When this component is disabled, make sure to clear the LocomotionTeleport's aim handler but only if this is still the active handler. It's an unlikely edge case but it's more robust to make sure a different aim handler wasn't enabled before this was disabled. More...
 
- Protected Member Functions inherited from TeleportSupport
virtual void AddEventHandlers ()
 Derived classes that need to use event handlers need to override this method and call the base class to ensure all event handlers are added as intended. More...
 
virtual void RemoveEventHandlers ()
 Derived classes that need to use event handlers need to override this method and call the base class to ensure all event handlers are removed as intended. More...
 
- Properties inherited from TeleportSupport
LocomotionTeleport LocomotionTeleport [get]
 

Detailed Description

This aim handler simulates the parabolic curve that a thrown item would follow, a common style of teleport aiming.

Member Function Documentation

◆ GetPoints()

override void TeleportAimHandlerParabolic.GetPoints ( List< Vector3 >  points)
virtual

Return the set of points that represent the aiming line.

Parameters
points

Implements TeleportAimHandler.

Member Data Documentation

◆ AimStep

float TeleportAimHandlerParabolic.AimStep = 1

The AimStep is the how much to subdivide the iteration.

◆ AimVelocity

float TeleportAimHandlerParabolic.AimVelocity = 1

The AimVelocity is the initial speed of the faked projectile.

◆ Gravity

float TeleportAimHandlerParabolic.Gravity = -9.8f

The Gravity is used in conjunction with AimVelocity and the aim direction to simulate a projectile.

◆ MinimumElevation

float TeleportAimHandlerParabolic.MinimumElevation = -100

The MinimumElevation is relative to the AimPosition.

◆ Range

float TeleportAimHandlerParabolic.Range

Maximum range for aiming.


The documentation for this class was generated from the following file: