577 {
579 SurfaceDetectionParameters surfaceParams = new SurfaceDetectionParameters();
581 surfaceParams.
position = cursorHitPos;
584 surfaceParams.
rsd = RoadSurfaceDetection.ABOVE;
585
586 SurfaceDetectionResult surfaceResult = new SurfaceDetectionResult();
587 if (
g_Game.GetSurface(surfaceParams, surfaceResult) && surfaceResult.
surface)
588 {
589 surfaceInfo = surfaceResult.
surface;
590 }
591
592 return surfaceInfo;
593 }
bool includeWater
Include water in the surface detection, will return the water if it is higher than the surface.
SurfaceDetectionType type
Type of surface to detect.
RoadSurfaceDetection rsd
See RoadSurfaceDetection, SurfaceTraceType.Roadway only.
vector position
3D position to trace the surface from
UseObjectsMode syncMode
See UseObjectsMode, SurfaceTraceType.Roadway only.
SurfaceInfo surface
Returned SurfaceInfo, plain pointer.