Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Help with collision of bullets / projectiles on (skinned) mesh

Discussion in 'Physics' started by ClaudiaTheDev, Sep 23, 2019.

  1. ClaudiaTheDev

    ClaudiaTheDev

    Joined:
    Jan 28, 2018
    Posts:
    331
    My character can shoot arrows and they collide with other colliders.
    My Problem ist that when the arrow collides with a mesh or skinned mesh, mostly the collider is simplier than the mesh and it sticks to spots where it shouldnt (see image).

    I dont want to use complex mesh colliders and they are not updated with the animations when i use skinned meshes.
    Can i somhow do a raycast or something to check if the arrow actually hits a part of the mesh or texture?
    Do you know an asset which can do this or a tutorial?

    Here is my problem:
    Blue crosses: collision ok
    Orange crosses: collision not ok
    ColliderProblem.png