![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | icqqq |
I have made a rigidbody and it can collide with static body.
However, I have made a several copies of the rigidbody and they don’t collide with each other. And the rigidbody can collide with other different rigidbodies.
What’s the problem?
Thanks
Did you use a CollisionShape
?
DodoIta | 2018-02-19 11:12
if it’s not scaled properly it might not work as expected, but it depends if it’s 2d or 3d.
If 2d only scale the inner nodes of the collision shape( not sure about the names) In 3d make sure the collision shape is scaled properly…Or you could check the collision shape parenting if the above are correct
originaltenka | 2018-02-19 11:36
I did use CollisionShape
, otherwise the rigidbody cannot collide with static body and other rigidbodies.
icqqq | 2018-02-19 12:28
I didn’t scale the collision
icqqq | 2018-02-19 12:29
Did it work?
originaltenka | 2018-02-19 12:32
does RigidBody have Concave Polygon Shape?
volzhs | 2018-02-19 12:35
Did you enable Contact Monitoring and set Contacts Reported to 1 in options of the rigid body?
Edit: You probably have done this, but you know I am just trying to help. Just in case, you missed it…
SingingApple | 2018-02-19 12:39
yes, the RigidBody has Concave Polygon Shape.
Does it matter?
icqqq | 2018-02-19 12:59
I have tried enable Contact Monitoring and set Contacts Reported to 1 but didn’t help.
Anyway, thank you.
icqqq | 2018-02-19 13:02
I am not sure it’s intended or a bug.
but, according to my test,
RigidBody with ConcaveShape does not collide to each other.
Convex vs Convex : collide
Convex vs Concave : collide
Concave vs Concave : not collide
volzhs | 2018-02-19 18:34
I asked godot dev team about this.
it’s normal(?) for now about rigidbody collision with these conditions.
Convex vs Convex : collide
Convex vs Concave : collide
Concave vs Concave : not collide
there is -convcolonly
option for exporting Convex polygon shape for collision.
Importing 3D Scenes — Godot Engine (3.0) documentation in English
volzhs | 2018-02-19 18:53
Thank you so much.
How to note your comment as answer?
BTW, why it is normal? I don’t get the idea why Concave vs Concave : not collide
Is there any reason behind?
Thanks again.
icqqq | 2018-02-20 03:15