godot-portals-plugin-csharp

Portal3D.ForwardRaycast method

Helper method for checking for raycast collisions through portals. Implement a method that checks your RayCast3D collisions and if it hits a portals Area3D then forward the ray through the portal:

RaycastColliderParent.ForwardRaycast(YourRayCast3D). . .

public Dictionary ForwardRaycast(RayCast3D rayCast)
parameter description
rayCast The raycast to forward.

Return Value

A dictionary of the raycast parameters or an empty dictionary if nothings was intersected.

See Also