Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Resolved Transfer all forces to another object...

Discussion in 'Scripting' started by fromoldcity, Dec 2, 2021.

  1. fromoldcity

    fromoldcity

    Joined:
    May 17, 2019
    Posts:
    7
    Hi Guys
    I have 2 main object in my 2D project that they transform to each other easily. My problem is; when transform complete for example as A to B. I cannot all physics force of A to B. I mean if A going with speed and gravity in space; when transform happens and B suddenly stopped. I want transfer A's physics to B.
    Any Solutions to solve this?
    Cheers...
     
  2. _geo__

    _geo__

    Joined:
    Feb 26, 2014
    Posts:
    1,115
  3. fromoldcity

    fromoldcity

    Joined:
    May 17, 2019
    Posts:
    7
    I used transform.position, transform.rotation and especially velocity of Rigidbody2D. And its works. Thank you mate.
     
    _geo__ likes this.