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

CharacterBody3D doesn't work with HeightMapShape3D #236

Open
warsang opened this issue Aug 29, 2024 · 3 comments
Open

CharacterBody3D doesn't work with HeightMapShape3D #236

warsang opened this issue Aug 29, 2024 · 3 comments
Labels
bug Something isn't working upstream_issue

Comments

@warsang
Copy link

warsang commented Aug 29, 2024

I've been using Terrain3D in my project along with Jolt and wanted to try out Rapier instead. I have a procedurally generated terrain and I make sure to set the below:
terrain.set_show_debug_collision(true)
terrain.set_collision_enabled(true)

For some reason my character collides with the terrain when using Jolt but just drops right through the terrain when using Rapier.

Steps to reproduce the behavior:

Create a terrain with Terrain3D and set up Rapier as the physics engine. Make sure to set collision layers and observe your character not colliding

Expected behavior

Character should collide with 3D terrain

Environment:

  • OS: Windows
  • Version latest from asset store (same for Terrain3D
    • Godot Version 4.3
@warsang warsang added the bug Something isn't working label Aug 29, 2024
@Ughuuu
Copy link
Contributor

Ughuuu commented Aug 29, 2024

I haven't used Terrain3D as much, can you provide a sample project for what doesn't work?

@Ughuuu Ughuuu changed the title Rapier physics 3D doesn't work well with Terrain3D CharacterBody3D doesn't work with HeightMapShape3D Aug 29, 2024
@Ughuuu
Copy link
Contributor

Ughuuu commented Aug 29, 2024

I'm able to reproduce it using character body and heightmap shape 3d. Seems to work with rigidbodies tho.

@Ughuuu
Copy link
Contributor

Ughuuu commented Sep 23, 2024

Seems to be that rapier doesn't implement contact finding for heightmap vs other shapes. Linked the issue, but for now until it's implemented there this won't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream_issue
Projects
None yet
Development

No branches or pull requests

4 participants
@Ughuuu @warsang and others