Method PositionInRegion
PositionInRegion(RideVector2, RideID)
Determine if a 2-D point overlaps with a region
Declaration
bool PositionInRegion(RideVector2 position, RideID id)
Parameters
Type | Name | Description |
---|---|---|
RideVector2 | position | a 2-D point in the world |
RideID | id | the RideID of the region |
Returns
Type | Description |
---|---|
System.Boolean | True if the point is in the region |
PositionInRegion(RideVector3, RideID)
Determine if a 3-D point overlaps with a region
Declaration
bool PositionInRegion(RideVector3 position, RideID id)
Parameters
Type | Name | Description |
---|---|---|
RideVector3 | position | a 3-D point in the world |
RideID | id | the RideID of the region |
Returns
Type | Description |
---|---|
System.Boolean | True if the point is in the region |