Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

Sandbox.ModAPI.Ingame.IMyCameraBlock.Raycast

Morten Aune Lyrstad edited this page Jul 30, 2021 · 22 revisions

IndexNamespace IndexIMyCameraBlock

Summary

public MyDetectedEntityInfo Raycast(double distance, float pitch, float yaw)

Does a raycast in the direction the camera is facing. Pitch and Yaw are in degrees. Will return an empty struct if distance or angle are out of bounds.

Returns

MyDetectedEntityInfo

Parameters

Summary

public MyDetectedEntityInfo Raycast(Vector3D targetPos)

Does a raycast to the given point. Will return an empty struct if distance or angle are out of bounds.

Returns

MyDetectedEntityInfo

Parameters

Summary

public MyDetectedEntityInfo Raycast(double distance, Vector3D targetDirection)

Does a raycast in the given direction (in camera local space). Will return an empty struct if distance or angle are out of bounds.

Returns

MyDetectedEntityInfo

Parameters

Clone this wiki locally