#Thread

1 messages · Page 1 of 1 (latest)

marble sparrow
#

hi

rotund dagger
#

Add this log in your collision method, before the if:

Debug.log($"{gameObject.name} has collided with ({collisionInfo.collider.name})");

And show me what prints after this object hits your obstacle

marble sparrow
#

okay

rotund dagger
#

Not Obstacle

marble sparrow
#

whats bthe difference there lol

rotund dagger
#

The log I had you add put the entire string inside of parenthesis

marble sparrow
#

they both say Obstacle?

rotund dagger
marble sparrow
#

i dont see a difference

rotund dagger
#

Space is a character

marble sparrow
#

OH

#

😭

#

i cant tell though

rotund dagger
#

That's why I had the log wrap it in parenthesis

marble sparrow
#

ohh

#

it works

#

now

rotund dagger
#

You have now learned exactly why you don't make the names of objects have code significance

marble sparrow
#

how do duplicate it tho for it to be Obstacle

#

no spaces

#

each time

rotund dagger
marble sparrow
#

thanks man for help

#

im confuswed on what yuopu mean

#

you

#

for that

rotund dagger
#

The name of an object should never matter in code

#

and you should not be checking it

#

check the tag instead