diff options
| author | Juan Linietsky | 2014-02-22 20:28:19 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-02-22 20:28:19 -0300 |
| commit | 7ca29bfaa7a23d06374c2456e0360c911bd9aa3e (patch) | |
| tree | dc615e0c7a55dff92af81be0ff2555e1f9485eba /servers/physics_2d/collision_object_2d_sw.h | |
| parent | b62ec387f340220e11902daab8484fcb85d28cda (diff) | |
| download | godot-7ca29bfaa7a23d06374c2456e0360c911bd9aa3e.tar.gz godot-7ca29bfaa7a23d06374c2456e0360c911bd9aa3e.tar.zst godot-7ca29bfaa7a23d06374c2456e0360c911bd9aa3e.zip | |
-added kinematic body
-added kinematic body demos
Diffstat (limited to 'servers/physics_2d/collision_object_2d_sw.h')
| -rw-r--r-- | servers/physics_2d/collision_object_2d_sw.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/physics_2d/collision_object_2d_sw.h b/servers/physics_2d/collision_object_2d_sw.h index 74457cfa0..8138cfcc6 100644 --- a/servers/physics_2d/collision_object_2d_sw.h +++ b/servers/physics_2d/collision_object_2d_sw.h @@ -65,6 +65,7 @@ private: Space2DSW *space; Matrix32 transform; Matrix32 inv_transform; + uint32_t user_mask; bool _static; void _update_shapes(); @@ -117,6 +118,8 @@ public: _FORCE_INLINE_ bool is_shape_set_as_trigger(int p_idx) const { return shapes[p_idx].trigger; } + void set_user_mask(uint32_t p_mask) {user_mask=p_mask;} + _FORCE_INLINE_ uint32_t get_user_mask() const { return user_mask; } void remove_shape(Shape2DSW *p_shape); void remove_shape(int p_index); |
