| Property | Value |
|---|---|
| Native Name | GET_SHAPE_TEST_RESULT_INCLUDING_MATERIAL |
| Hash | 0x65287525D951F6BE |
| Return Type | int |
| Parameters | shapeTestHandle (int), hit (BOOL*), endCoords (Vector3*), surfaceNormal (Vector3*), materialHash (Hash*), entityHit (Entity*) |
Description: Returns the result of a shape test, also returning the material of any touched surface.
When used with an asynchronous shape test, this native should be looped until returning 0 or 2, after which the handle is invalidated.
Unless the return value is 2, the other return values are undefined.
Parameters
shapeTestHandle(int) — A shape test handle.hit(BOOL*) — Whether or not the shape test hit any collisions.endCoords(Vector3*) — The resulting coordinates where the shape test hit a collision.surfaceNormal(Vector3*) — The surface normal of the hit position.materialHash(Hash*) — hash of the hit material or surface type, see materialFX.datentityHit(Entity*) — Any dynamic entity hit by the shape test.