Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bullet] InputEvent in StaticBody always return index 0 #43587

Open
Tracked by #45022
Hromon opened this issue Nov 16, 2020 · 1 comment
Open
Tracked by #45022

[Bullet] InputEvent in StaticBody always return index 0 #43587

Hromon opened this issue Nov 16, 2020 · 1 comment

Comments

@Hromon
Copy link

Hromon commented Nov 16, 2020

Godot version:

Mono 3.2.3 and 3.2.4

OS/device including version:

Win 10 64

Issue description:

InputEvent in StaticBody always return 0 index shape for ConcavePolygonShape...

Minimal reproduction project:

Example.zip

@Hromon Hromon changed the title [Mono, Physics] Index 0 [Mono, Physics] InputEvent in StaticBody always return index 0 Nov 16, 2020
@Calinou Calinou changed the title [Mono, Physics] InputEvent in StaticBody always return index 0 InputEvent in StaticBody always return index 0 Nov 21, 2020
@pouleyKetchoupp pouleyKetchoupp changed the title InputEvent in StaticBody always return index 0 [Bullet] InputEvent in StaticBody always return index 0 Jan 14, 2021
@pouleyKetchoupp
Copy link
Contributor

This is a known issue with Bullet and not specific to Mono, it doesn't happen with Godot Physics.
See #39767.

MRP with gdscript:
ConcavePolygonShapeIndex.zip

In 3.2.3, it actually returns the triangle index instead of shape index when using Bullet.

PR #42882 enforces indices to be 0 (instead of triangle indices) and documents this limitation with Bullet, but it would be nice to fix it (probably upstream).
CC @AndreaCatania

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants