#it's 3 backticks, not just one. but you
1 messages · Page 1 of 1 (latest)
can u explain me what you have said?
I though I was doing that by write other.gameObject
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
Im not understanding
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
the gameobject that is getting is the correct, but the wrong thing is the "engine" is considering the forward dir
wrong object. the one that is colliding
nani?
oh my god
the fucking object that is colliding with this one. you know, the one that is other in the code there
yes...
you know, the one called VehicleRoot where the VehicleGraphics is likely pointing in a different direction
look at that object
but the pink debugLine is coming from the vehicleRoot
stop making assumptions about all that is happening and fucking follow directions
CS_Vehicle script has
"Debug.DrawLine(transform.position, transform.position + transform.forward * 10, Color.magenta);"
whatever is actually colliding with the "Baliza" object is not pointing in the same direction
so show the objects
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
thats a line from the vehicle script, and it uses local forwards...
let me analyze the on stay of the baliza script
omg wait