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

Manually moving edge collider. Any way to transfer momentum?

Discussion in 'Physics' started by itsDrew, Aug 5, 2018.

  1. itsDrew

    itsDrew

    Joined:
    Aug 16, 2017
    Posts:
    32
    I am manually setting endpoints of an edge collider according to input position. When the edge collider contacts a rigid body, is there any way to have the edge collider act as a rigid body? (The vertices may be moving, so each edge may be moving). I've done this before with primitive colliders by using a rigid spring where one end is attached to a rigid body + collider and the other end is attached to input position. So moving the input allows the physics engine to do its thing on the rigid body and collisons will transfer momentum.