Skip to content

Commit 5843730

Browse files
feat: add body collider name
1 parent 5ebad15 commit 5843730

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ecctrl",
3-
"version": "1.0.47",
3+
"version": "1.0.48",
44
"author": "Erdong Chen",
55
"license": "MIT",
66
"description": "A floating rigibody character controller for R3F",

src/Ecctrl.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,10 @@ const Ecctrl = forwardRef<RapierRigidBody, EcctrlProps>(({
11521152
friction={props.friction || -0.5}
11531153
{...props}
11541154
>
1155-
<CapsuleCollider args={[capsuleHalfHeight, capsuleRadius]} />
1155+
<CapsuleCollider
1156+
name="character-capsule-collider"
1157+
args={[capsuleHalfHeight, capsuleRadius]}
1158+
/>
11561159
<group ref={characterModelRef} userData={{ camExcludeCollision: true }}>
11571160
{/* This mesh is used for positioning the slope ray origin */}
11581161
<mesh

0 commit comments

Comments
 (0)