[SOLVED] Need help for collision

i can’t seem to get my character to get “coins” in my game when i set my character’s rigidbody to dynamic. but when it’s set to kinematic, everything is working fine. i’ll link my game below

https://playcanvas.com/editor/scene/1496374

Hello @iscm ,

From what I see in your moveCharacter.js script, you move your character with translateLocal. You can’t do that since your character has a Dynamic rigidbody. Try moving your character using forces or velocity. After you do this check if that fixes your issue.

2 Likes

Oh my god, that fixed my problem! Thank you very much for helping me. However, it turned to another problem lol. Whenever I collect these ‘coins’, the background sprite rotates everytime I get a ‘coin’

1 Like

Hmm, I see. Try adding these settings to your character’s rigidbody:

image

IT’S ALL GOOD NOW, EVERYTHING’S WORKING. YOU HAVE NO IDEA HOW MUCH YOU’VE HELPED ME. Thank you so much Christina!! <3

1 Like

Awesome! Make sure to share your game with the community once it’s finished! Nice job!