Download

[REQUEST] Ray Plane Intersection Point Function

How do i create a BP function to find the intersection point of a ray and a plane?

Inputs: RayOrigin, RayDestination, PlaneOrigin, PlaneNormal - Returns True/False and a Vector (Point in the Plane) - Inputs via BP
Returns: True or False if not in plane. A output intersection point (Vector)

Use:
For a click to walk in direction camera controller style (Diablo like)

In the input above, what i will do is:
RayOrigin: Projected Mouse Cursor Screen to World Space
RayDestination: WorldLocation + (WorldDirection * 1000)
PlaneOrigin: Pawn Position
PlaneNormal: Z Vector for a TopDown Game (0,0,1)

Already did it. Tutorial step by step soon.

RayPlane Intersection Point (WIP): http://screencloud.net/v/zywL
Rotate Character Pawn based on Mouse Look (WIP): http://screencloud.net/v/rnLv
Video of the Feature (WIP): https://dl.dropboxusercontent.com/u/49868369/UnrealEngine/PawnLookAt-WIP.mp4

This is great! Thanks for sharing. :slight_smile: