Sandbox.ModAPI.Ingame.IMyCameraBlock.Raycast - bimbam2103/space_engineers GitHub Wiki
← 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.