mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-22 17:17:17 +01:00
Fixed processing collision shapes in PropDataCollisionObject.
This commit is contained in:
parent
f7ecfb412a
commit
da2daebbb8
@ -74,12 +74,17 @@ void PropDataCollisionObject::add_collision_shape(const Transform &p_transform,
|
||||
ShapeEntry e;
|
||||
e.transform = p_transform;
|
||||
e.shape = p_shape;
|
||||
|
||||
_shapes.push_back(e);
|
||||
|
||||
property_list_changed_notify();
|
||||
}
|
||||
void PropDataCollisionObject::remove_collision_shape(const int p_index) {
|
||||
ERR_FAIL_INDEX(p_index, _shapes.size());
|
||||
|
||||
_shapes.remove(p_index);
|
||||
|
||||
property_list_changed_notify();
|
||||
}
|
||||
|
||||
bool PropDataCollisionObject::_processor_evaluate_children() {
|
||||
|
@ -66,7 +66,7 @@ void PropDataStaticBody::_processor_process(Ref<PropData> prop_data, Node *node,
|
||||
c->set_collision_layer(sb->get_collision_layer());
|
||||
c->set_collision_mask(sb->get_collision_mask());
|
||||
|
||||
processor_process_collision_objects(node, Transform());
|
||||
c->processor_process_collision_objects(node, Transform());
|
||||
|
||||
prop_data->add_prop(c);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user