#collision data get point

1 messages · Page 1 of 1 (latest)

ruby anchor
#

i have an object that touches another object through overlap sphere. When i tried to get the point where the objects collide i noticed that "collision data get position" give position of the other object and not the position of the collision. My question is:
How do i find the position of the collision point from the collision data?

#

maybe im just abit dumb but i dint find any chip that helps me in this case

shrewd berry
#

You might have to use a raycast and approximate where the point is idk if there is a chip that gets collision position

ruby anchor
#

i cant use raycast or sphere cast because i'll have to send it from inside the object which will ust return the object itself

shrewd berry
#

No if it starts inside it doesn’t it’s actually pretty cool that it does that

ruby anchor
#

then next question: how would i approximate the point?
the object that has the detection is held by a player and other object is basicaly ground so its really big and using stuff like velocity or direction towards an object wont really work in my case

shrewd berry
#

Alright so what you could do is fire like a bunch of raycasts and pick the closest hit point might take a hot minute to make

ruby anchor
shrewd berry
#

Do you have a video of what your making

#

You might be able to use closest on plane

ruby anchor
#

1 sec

shrewd berry
#

Oh so it’s like that hammer parkour game

#

Do you even need the collision position i think you could just use the velocity of the end of the hammer and detect if there are any walls in the collision at that time

ruby anchor