Skip to content
New issue

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

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

Already on GitHub? # to your account

I have set collisions to active and still my character does not collide with the scenery, which is trimesh and fixed #694

Open
albertalgoritcom opened this issue Aug 2, 2024 · 0 comments

Comments

@albertalgoritcom
Copy link

<RigidBody ccd
ref={rigidBodyRef}
type="kinematicPosition"
position={[position.x, position.y + 0.3, position.z]}
enabledRotations={[false, true, false]}
onCollisionEnter={handleCollisionEnter}
onCollisionExit={handleCollisionExit}
name="Player"
>
<CapsuleCollider
args={[height / 2 - 0.3, 0.3]}
restitution={0.2}
friction={0.5}
activeCollisionTypes={ActiveCollisionTypes.ALL}
collisionGroups={interactionGroups(0, [0, 1])}
/>
<group visible position={[0, -height / 2, 0]}>


# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant