#am I missing something here?
1 messages · Page 1 of 1 (latest)
Don't you need to add the Z from the Actor Location back into this?
BoxExtent itself is just a relative value. The WorldLocation of that box's center is in "Origin"
I know, but I need to get a more accurate reading of the obstacle's height
I'm trying to make it so that the character knows how high it should jump depending on the obstacle's top position from the ground
Yeah that's fine, but from the math you posted it seems like you use the BoxExtent Z for the TraceZ, probably for Starting
yes
You are missing ADDING that BoxExtentZ on top of the ActorZ
At least that's what I think is missing there
Also, what is the top Vector from?
the hit location
alright there we go
so I gotta make sure to get the origin too
not just the extent
I don't think it matters the adding order?
and I thought of multiplying it to get the center of the hit actor
but it ends up going somewhere else
:P Maybe? Does 5 + 2 = 2 + 5? Who knows.
Why multiplying it? And with that?
actually yeah it does make sense...
the subtracting order matters the most
Yeah
actually now that I made a second thought
the XY position don't actually need to be precise
tho, then there comes the question "what if the object has a more complex shape?"
which is where the hit location comes into place
in this case I think I need the multi line trace by channel
so that it starts off a few cm higher than the actor's bounds and then gets the first hit which is the actor's convex mesh collision and then the ground
alright, perfect!