fixes
parent
bfd691e7ab
commit
df76bb5f35
|
@ -30,8 +30,10 @@ export function Banana({onCollide, id, ...props}) {
|
|||
type='fixed'
|
||||
position={props.position}
|
||||
sensor
|
||||
onIntersectionEnter={() => {
|
||||
onIntersectionEnter={({other}) => {
|
||||
if(other.rigidBodyObject.name === "player"){
|
||||
actions.setShouldSlowDown(true);
|
||||
}
|
||||
actions.removeBananaById(id);
|
||||
}}
|
||||
colliders={false}
|
||||
|
|
Loading…
Reference in New Issue