pmndrs / react-three-rapier

🤺 Rapier physics in React
https://react-three-rapier.pmnd.rs
MIT License
1.1k stars 62 forks source link

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 3 months ago

albertalgoritcom commented 3 months ago

<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]}>