Method ScreenPointToRay
ScreenPointToRay(RideVector3)
Returns a ray going from the MAIN camera through the screen point
Declaration
RideRay ScreenPointToRay(RideVector3 pos)
Parameters
Type | Name | Description |
---|---|---|
RideVector3 | pos | The screen point in pixel space |
Returns
Type | Description |
---|---|
RideRay | Returns a ray going from the camera through the screen point |
ScreenPointToRay(RideID, RideVector3)
Returns a ray going from the camera through the screen point
Declaration
RideRay ScreenPointToRay(RideID camera, RideVector3 pos)
Parameters
Type | Name | Description |
---|---|---|
RideID | camera | The camera to cast the ray from |
RideVector3 | pos | The screen point in pixel space |
Returns
Type | Description |
---|---|
RideRay | Returns a ray going from the camera through the screen point |