You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can confirm returned values are wrong with Bullet. Returned points should be in world space, but Bullet is probably returning them with a different transformation, maybe in the shape's local space.
In Godot Physics they are correct:
(cylinder is implemented now, and you can get similar results with other shapes)
Documentation could be improved though. Returned points are a list of pairs of contact points. For each pair the first one is in the shape passed in PhysicsShapeQueryParameters, second one is in the collided shape from the physics space.
I just ran into this. It appears that the first point is in the local space of the body whose shape is passed in PhysicsShapeQueryParameters, and the second point is in the local space of the other body.
Godot version:
3.2.3 stable/3.2.4 (tested on multiple versions)
PhysicsEngine:
tested in both Godot Physics and Bullet Physics
(This project is in Bullet, bc it's using cyliner-shape)
Issue description:
As the title implies, I don't understand what collide_shape returns. Either it's bugged or just really unintuitive.
Steps to reproduce:
Use collide_shape and print the returned values.
Minimal reproduction project:
MinimalisticProject.zip
The text was updated successfully, but these errors were encountered: