Prevent setting too big or too small Collision Mask and Layer
This commit is contained in:
parent
66f696c2c1
commit
efcb097674
14 changed files with 48 additions and 16 deletions
|
|
@ -176,11 +176,11 @@ real_t PhysicsShapeQueryParameters2D::get_margin() const {
|
|||
return margin;
|
||||
}
|
||||
|
||||
void PhysicsShapeQueryParameters2D::set_collision_mask(int p_collision_mask) {
|
||||
void PhysicsShapeQueryParameters2D::set_collision_mask(uint32_t p_collision_mask) {
|
||||
collision_mask = p_collision_mask;
|
||||
}
|
||||
|
||||
int PhysicsShapeQueryParameters2D::get_collision_mask() const {
|
||||
uint32_t PhysicsShapeQueryParameters2D::get_collision_mask() const {
|
||||
return collision_mask;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue