Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Sandbox.ModAPI.Ingame.IMyCameraBlock.Raycast

Morten Aune Lyrstad edited this page Apr 16, 2022 · 21 revisions

IndexNamespace IndexIMyCameraBlock

Summary

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

Does a raycast in the direction the camera is facing.

Returns

MyDetectedEntityInfo

Empty if distance or angle are out of bounds.

Parameters

Summary

public MyDetectedEntityInfo Raycast(Vector3D targetPos)

Does a raycast to the specific target point.

Returns

MyDetectedEntityInfo

Empty if distance or angle are out of bounds.

Parameters

Summary

public MyDetectedEntityInfo Raycast(double distance, Vector3D targetDirection)

Does a raycast in the given direction (in camera local space).

Returns

MyDetectedEntityInfo

Empty if distance or angle are out of bounds.

Parameters

Clone this wiki locally