appsinacup / godot-box2d

Godot Box2D – C++ Godot Extension that integrates the Box2D physics engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The collision between the circle and capsule is not correctly.

cplus98 opened this issue · comments

Describe the bug

  var circle := CircleShape2D.new()
  circle.radius = 1.0
  var capsule = CapsuleShape2D.new()
  capsule.radius = 1.0
  capsule.height = 10.0
  
  var trans_circle = Transform2D.IDENTITY
  trans_circle.translated(Vector2(0, 5.0))
  var trans_capsule = Transform2D.IDENTITY
  
  var result = circle.collide(trans_circle, capsule, trans_capsule)
  print(result)

To Reproduce
returns "false"

Expected behavior
It should return "true".

Versions (please complete the following information):

  • OS: OSX
  • Godot v4.2.2
  • Box2d v0.9.9

It was resolved in version 0.9.11.