Physics raycast type: Difference between revisions
Jump to navigation
Jump to search
CrosRoad95 (talk | contribs) (Created page with "===Physics raycast types=== used in *physicsRayCast =="isclear"== {|class="wikitable sortable" |- ! Key || Value || Description |- | hit || bool || do hit has occur |- |}...") |
CrosRoad95 (talk | contribs) |
||
| Line 27: | Line 27: | ||
| rigidbody || rigid-body|| contains rigid body if was hit, false otherwise | | rigidbody || rigid-body|| contains rigid body if was hit, false otherwise | ||
|- | |- | ||
| staticcollision || static-collision || contains | | staticcollision || static-collision || contains static collision if was hit, false otherwise | ||
|- | |- | ||
|} | |} | ||
Latest revision as of 15:32, 13 February 2020
Physics raycast types
used in
"isclear"
| Key | Value | Description |
|---|---|---|
| hit | bool | do hit has occur |
"default"
| Key | Value | Description |
|---|---|---|
| hit | bool | do hit has occur |
| hitpoint | table | position of hit. |
| hitnormal | table | normal vector world center aligned. |
| shape | physics-shape | if something got hit, returns shape it hits. |
| rigidbody | rigid-body | contains rigid body if was hit, false otherwise |
| staticcollision | static-collision | contains static collision if was hit, false otherwise |
"multiple"
Returns table with all hits where each hit is table from "default" type