You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-07 19:53:17 +00:00
Make radius & height in CapsuleShape3D independent
Also changed CapsuleMesh to make settings consistent between render and physics.
This commit is contained in:
@@ -386,7 +386,7 @@ PhysicalBone3D *Skeleton3DEditor::create_physical_bone(int bone_id, int bone_chi
|
||||
const real_t radius(half_height * 0.2);
|
||||
|
||||
CapsuleShape3D *bone_shape_capsule = memnew(CapsuleShape3D);
|
||||
bone_shape_capsule->set_height((half_height - radius) * 2);
|
||||
bone_shape_capsule->set_height(half_height * 2);
|
||||
bone_shape_capsule->set_radius(radius);
|
||||
|
||||
CollisionShape3D *bone_shape = memnew(CollisionShape3D);
|
||||
|
||||
Reference in New Issue
Block a user