- Home /
Overlap point of 2 kinematic colliders
Currently working on a Hack n Slash prototype, and need to find the collision point between a sword and what it collides with.
Initially I had triggers, but OnTriggerEnter doesn't provide details as to the point of collision. Changing to non-triggers however, didn't solve this issue, as both the sword and the objects being collided with are kinematic (the collision isn't even detected)
Is there any way around this?
Freezing positions / rotations won't work, as the objects (and the sword) need to be moved around and follow their parent.
Cheers
Answer by Jeff-Kesselman · May 19, 2014 at 09:12 PM
Why don't you cast a ray from the sword hand down the center of the sword and see what it hits and where? Wouldn't be exact collidon point but id think it'd be reasonably close...
Good idea, and may unfortunately be what I end up doing in some circumstances, but I'm trying to keep the system as generic as possible. Trying to find a solution that will work with more than just swords and other long thin weapons. Essentially, collision shapes are a must.
Your answer
Follow this Question
Related Questions
OnTriggerEnter is not running! Need help with collision. 2 Answers
Trigger Spawning? 1 Answer
Can't click gameobject when over another trigger? 1 Answer
Colliding two GameObjects 1 Answer
Missing taps on triggers/collider 0 Answers