This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
Sandbox.ModAPI.Ingame.IMyCameraBlock.Raycast
Morten Aune Lyrstad edited this page Apr 16, 2022
·
21 revisions
← Index ← Namespace Index ← IMyCameraBlock
public MyDetectedEntityInfo Raycast(double distance, float pitch = 0, float yaw = 0)
Does a raycast in the direction the camera is facing.
Empty if distance or angle are out of bounds.
public MyDetectedEntityInfo Raycast(Vector3D targetPos)
Does a raycast to the specific target point.
Empty if distance or angle are out of bounds.
- Vector3D targetPos
public MyDetectedEntityInfo Raycast(double distance, Vector3D targetDirection)
Does a raycast in the given direction (in camera local space).
Empty if distance or angle are out of bounds.
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!