#it's 3 backticks, not just one. but you

1 messages · Page 1 of 1 (latest)

verbal galleon
#

can u explain me what you have said?

#

I though I was doing that by write other.gameObject

tardy vault
#

sorry not the object the component is attached to, but the object that is actually colliding with this component

#

you need to select it in the hierarchy so you can see why it doesn't line up the way you are expecting it to

verbal galleon
#

Im not understanding

tardy vault
#

you're making assumptions about what is actually colliding and the direction that object is facing. i'm trying to make you see why your assumption is wrong

verbal galleon
#

the gameobject that is getting is the correct, but the wrong thing is the "engine" is considering the forward dir

tardy vault
#

show the object's hierarchy

#

and inspector

verbal galleon
#

ok

tardy vault
#

wrong object. the one that is colliding

verbal galleon
#

nani?

tardy vault
#

oh my god

#

the fucking object that is colliding with this one. you know, the one that is other in the code there

verbal galleon
#

yes...

tardy vault
#

you know, the one called VehicleRoot where the VehicleGraphics is likely pointing in a different direction

#

look at that object

verbal galleon
#

but the pink debugLine is coming from the vehicleRoot

tardy vault
#

stop making assumptions about all that is happening and fucking follow directions

verbal galleon
#

CS_Vehicle script has
"Debug.DrawLine(transform.position, transform.position + transform.forward * 10, Color.magenta);"

tardy vault
#

whatever is actually colliding with the "Baliza" object is not pointing in the same direction

#

so show the objects

verbal galleon
tardy vault
#

take a look at this line: Debug.DrawLine(transform.position, transform.position + transform.forward * 10, Color.magenta);

#

then take a look at the Debug.DrawLine calls in OnTriggerStay

#

i'll give you another hint: you're drawing different lines

verbal galleon
#

omg wait