Click or drag to resize
IMyCameraBlockRaycast Method (Double, Single, Single)
v01.180.0 (Beta)

[This is preliminary documentation and is subject to change.]

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.

Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
MyDetectedEntityInfo Raycast(
	double distance,
	float pitch = 0f,
	float yaw = 0f
)

Parameters

distance
Type: SystemDouble
pitch (Optional)
Type: SystemSingle
yaw (Optional)
Type: SystemSingle

Return Value

Type: MyDetectedEntityInfo
See Also