I am developing a 3rd person platformer that entails a grapple hook system.
This grapple hook system relies on a series of 'grapple-able' points.
I would like these points to shine every so often.
These points will shine when:
- Within the player's view cone AND
- Within a certain distance of the player.
This Grapple
object class will contain the method Shine()
to trigger the effect.
Initial research
My initial research was based upon using a cone trace from the player for these Grapple
objects, then in each one found, calling the Shine
method.
I could then tweak the cone's angle and height to better represent the view cone.
Problems
Unreal by default does not have a cone trace, and I'm not sure if using a multibox trace followed by an angle check is the most efficient solution.