Skip to content

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

Open
@albertalgoritcom

Description

@albertalgoritcom

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


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions