How do I get the coordinates of the collision points between two physics?

szzg007

  • Posts: 56
I want to make a ninja killing monsters with a knife. But I don't know how to find the coordinates when the knife collides with the enemy What's the way to get a knife in an arc, fan-shaped movement?. Get the point of contact with the enemy's body?

Class type“GetManifold()?”

szzg007

  • Posts: 56
control Buttons : X,Z,A and Up, down, right, lift.

JeffreyDriver

  • Posts: 1720
See the blocks under COLLISIONS > COLLISION POINTS. Those will get you the XY values.

Getting the sword to swing in an arc will probably require some mathematics, which is a weakness of mine, so someone else can probably help you.

Edit: Just had an idea about the sword. If you set the origin point at the end of the handle (or use another custom origin point if you need) you can then rotate it as you need.
Current Projects:
Retro Redux Compilation (NEW).
Retro Redux (untitled) (NEW).
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

szzg007

  • Posts: 56
No..This not work!....

JeffreyDriver

  • Posts: 1720
What exactly isn't working?
Current Projects:
Retro Redux Compilation (NEW).
Retro Redux (untitled) (NEW).
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk