Search Unity

Bypass momentum transfer. 2D

Discussion in 'Physics' started by trudeaudm, Jan 23, 2017.

  1. trudeaudm


    Apr 17, 2013
    Hello all!

    I am trying to find out if there is a way to NOT transfer momentum between rigidbodies, while keeping both rigidbodies as freely moving objects (non kinematic).

    I have a player which uses a rigidbody, and the spaceship which is also a rigidbody, and when the player is inside the ship I do not want it to be able to accelerate the ship by moving against the walls.

    Here is an image to explain.

    In the game the ship could be freely moving through space relative to other objects, and the player can be inside the ship, when inside the ship the player can move around as well, although the player's velocity gets lerp'd to the ships velocity to simulate friction/some kind of magnetic boots.

    Thanks for any tips or help!