TeleportTargetHandlerPhysical Class Reference

This target handler simply returns any location that is detected by the aim collision tests. Essentially, any space the player will fit will be a valid teleport destination. More...

Inheritance diagram for TeleportTargetHandlerPhysical:
TeleportTargetHandler TeleportSupport

Protected Member Functions

override bool ConsiderTeleport (Vector3 start, ref Vector3 end)
 This method will be called while the LocmotionTeleport component is in the aiming state, once for each line segment that the targeting beam requires. The function should return true whenever an actual target location has been selected. More...
 
- Protected Member Functions inherited from TeleportTargetHandler
 TeleportTargetHandler ()
 
override 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...
 
override 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...
 
virtual void ResetAimData ()
 
- Protected Member Functions inherited from TeleportSupport
virtual void OnEnable ()
 OnEnable is virtual so that derived classes can set up references to objects before AddEventHandlers is called, as is required by TeleportSupport derivations. More...
 
virtual void OnDisable ()
 

Additional Inherited Members

- Public Member Functions inherited from TeleportTargetHandler
virtual Vector3 ConsiderDestination (Vector3 location)
 Adjust the provided located to account for character height and perform any checks that might invalidate the target position of the character controller, such as collision with scene geometry or other actors. More...
 
- Public Attributes inherited from TeleportTargetHandler
LayerMask AimCollisionLayerMask
 This bitmask controls which game object layers will be included in the targeting collision tests. More...
 
- Protected Attributes inherited from TeleportTargetHandler
readonly LocomotionTeleport.AimData AimData = new LocomotionTeleport.AimData()
 
- Properties inherited from TeleportSupport
LocomotionTeleport LocomotionTeleport [get]
 

Detailed Description

This target handler simply returns any location that is detected by the aim collision tests. Essentially, any space the player will fit will be a valid teleport destination.

Member Function Documentation

◆ ConsiderTeleport()

override bool TeleportTargetHandlerPhysical.ConsiderTeleport ( Vector3  start,
ref Vector3  end 
)
protectedvirtual

This method will be called while the LocmotionTeleport component is in the aiming state, once for each line segment that the targeting beam requires. The function should return true whenever an actual target location has been selected.

Parameters
start
end

Implements TeleportTargetHandler.


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