You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After setting setActiveHooks(RAPIER.ActiveHooks.FILTER_CONTACT_PAIRS), the RigidBody will pass through regardless of the return value of filterContactPair.
#301
Open
dayechen opened this issue
Dec 30, 2024
· 0 comments
collider.setActiveHooks(RAPIER.ActiveHooks.FILTER_CONTACT_PAIRS);
this.world.step(this.eventQueue, {
filterContactPair: (collider1: ColliderHandle, collider2: ColliderHandle, body1: RigidBodyHandle, body2: RigidBodyHandle) => {
return SolverFlags.COMPUTE_IMPULSE; // SolverFlags.EMPTY
},
filterIntersectionPair: (collider1, collider2, body1, body2) => {
return true;
}
});
I need to make a platform that can be crossed in one direction. How should I do it
The text was updated successfully, but these errors were encountered:
collider.setActiveHooks(RAPIER.ActiveHooks.FILTER_CONTACT_PAIRS);
this.world.step(this.eventQueue, {
filterContactPair: (collider1: ColliderHandle, collider2: ColliderHandle, body1: RigidBodyHandle, body2: RigidBodyHandle) => {
return SolverFlags.COMPUTE_IMPULSE; // SolverFlags.EMPTY
},
filterIntersectionPair: (collider1, collider2, body1, body2) => {
return true;
}
});
I need to make a platform that can be crossed in one direction. How should I do it
The text was updated successfully, but these errors were encountered: