You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Create CollisionObject debug shapes using VS
(cherry picked from commit 60ee8c9639)
This commit is contained in:
committed by
Rémi Verschelde
parent
5193c3c8eb
commit
140cf0f2cb
@@ -47,7 +47,7 @@ class CollisionObject : public Spatial {
|
||||
Object *owner;
|
||||
Transform xform;
|
||||
struct ShapeBase {
|
||||
Node *debug_shape = nullptr;
|
||||
RID debug_shape;
|
||||
Ref<Shape> shape;
|
||||
int index;
|
||||
};
|
||||
@@ -69,11 +69,16 @@ class CollisionObject : public Spatial {
|
||||
bool ray_pickable;
|
||||
|
||||
Set<uint32_t> debug_shapes_to_update;
|
||||
int debug_shape_count = 0;
|
||||
int debug_shapes_count = 0;
|
||||
Transform debug_shape_old_transform;
|
||||
|
||||
void _update_pickable();
|
||||
|
||||
bool _are_collision_shapes_visible();
|
||||
void _update_shape_data(uint32_t p_owner);
|
||||
void _shape_changed(const Ref<Shape> &p_shape);
|
||||
void _update_debug_shapes();
|
||||
void _clear_debug_shapes();
|
||||
|
||||
protected:
|
||||
CollisionObject(RID p_rid, bool p_area);
|
||||
@@ -85,8 +90,7 @@ protected:
|
||||
virtual void _mouse_enter();
|
||||
virtual void _mouse_exit();
|
||||
|
||||
void _update_debug_shapes();
|
||||
void _clear_debug_shapes();
|
||||
void _on_transform_changed();
|
||||
|
||||
public:
|
||||
uint32_t create_shape_owner(Object *p_owner);
|
||||
|
||||
Reference in New Issue
Block a user