#am I missing something here?

1 messages · Page 1 of 1 (latest)

hasty carbon
#

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"

fading granite
#

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

hasty carbon
#

Yeah that's fine, but from the math you posted it seems like you use the BoxExtent Z for the TraceZ, probably for Starting

fading granite
#

yes

hasty carbon
#

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?

fading granite
#

the hit location

hasty carbon
fading granite
#

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?

fading granite
# hasty carbon

and I thought of multiplying it to get the center of the hit actor

#

but it ends up going somewhere else

hasty carbon
hasty carbon
fading granite
hasty carbon
#

Yeah

fading granite
#

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!