#charcter flips when hits wall

1 messages · Page 1 of 1 (latest)

wide drift
#

yes lemme show collision

#

how do you open code for a component thats in the inspector again lmao

#

also @faint whale to answer the question, whenever my charcter collides with a wall it flips directions

#

@flint ether i think its just the unity generic one

flint ether
#

I checked your code that you pasted. Nothing in there explains why your character would flip. Do you have any script that have OnCollisionEnter() code?

wide drift
#

ummmm a lot of this is pre made assets (disgusting i know) so im not sure but give me a second to check

flint ether
#

In your IDE, you can perform a project search. Would suggest do that and see what result you find.

wide drift
#

ok!

#

wait like control F search each thing or it searches the entire project like all files?

flint ether
#

In visual studio code, Ctrl + shift + f, In Rider/IntelliJ, double shift. Don't know about visual studio community, but nothing is stopping you from searching how to do that online.

wide drift
#

hmm says 0 matching files

#

the only other file attached in the assets is a movement code, i can send that real quick

flint ether
#

Starting to think this may have to do with the animations? Try #🏃┃animation channel and see if someone has an idea why your character flips. Both of your script still doesn't show any behaviour instructing to rotate or scale your player gameobject. I can see that you're updating the animations.