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.IngameAssembly: 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
)
Function Raycast (
distance As Double,
Optional pitch As Single = 0F,
Optional yaw As Single = 0F
) As MyDetectedEntityInfo
MyDetectedEntityInfo Raycast(
double distance,
float pitch = 0f,
float yaw = 0f
)
abstract Raycast :
distance : float *
?pitch : float32 *
?yaw : float32
(* Defaults:
let _pitch = defaultArg pitch 0f
let _yaw = defaultArg yaw 0f
*)
-> MyDetectedEntityInfo
Parameters
- distance
- Type: SystemDouble
- pitch (Optional)
- Type: SystemSingle
- yaw (Optional)
- Type: SystemSingle
Return Value
Type:
MyDetectedEntityInfoSee Also