Documentation: PhysicsShapeComponent
Jump to navigation
Jump to search
Name | Type | Initial Value | Example Range | Description |
---|---|---|---|---|
Members | ||||
recreate | bool | false | ||
is_circle | bool | false | ||
is_box | bool | true | ||
is_capsule | bool | false | ||
is_based_on_sprite | bool | false | if set, will use sprite component to figure out a box that fits this | |
friction | float | 0.75 | ||
restitution | float | 0.1 | ||
density | float | 0.75 | [0, 5] | |
local_position_x | float | 0 | [-5, 5] | |
local_position_y | float | 0 | [-5, 5] | |
radius_x | float | 1 | [0, 10] | |
radius_y | float | 1 | [0, 10] | |
capsule_x_percent | float | 0.25 | [0, 1] | |
capsule_y_percent | float | 0.3 | [0, 1] | |
Custom data types | ||||
material | int | 0 | the material to use for collision audio |