appsinacup / godot-rapier-physics

Godot Rapier Physics – A 2D and 3D drop-in replacement for the Godot engine that adds stability and fluids.
https://godot.rapier.rs
MIT License
328 stars 16 forks source link

CharacterBody3D doesn't work with HeightMapShape3D #236

Open warsang opened 2 weeks ago

warsang commented 2 weeks ago

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:

Ughuuu commented 2 weeks ago

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

Ughuuu commented 2 weeks ago

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