public RayCastResult RayCast(float3 startPoint, float3 endPoint, Entity camera) { RayCastResult result = new RayCastResult() { entityHit = Entity.Null, t = 1.0f }; RayCastNative(cppWrapper, startPoint, endPoint, camera, ref result); return(result); }
protected static extern void RayCastNative(IntPtr emr, float3 startPoint, float3 endPoint, Entity camera, ref RayCastResult result);