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. Dismiss Notice

Question CalculateVelocityToTarget Implementation

Discussion in 'Physics for ECS' started by AtomSmasher001, Jun 11, 2020.

  1. AtomSmasher001

    AtomSmasher001

    Joined:
    May 25, 2019
    Posts:
    2
    I have noticed that the method: CalculateVelocityToTarget in (Unity.Physics.Extensions) is not implemented (Physics Ver:0.3.2).

    Any Idea when it will be, or how to implement the functionality myself?

    Thanks!
     
  2. Adam-Mechtley

    Adam-Mechtley

    Unity Technologies

    Joined:
    Feb 5, 2007
    Posts:
    290
    Hi! Not sure how you are seeing that in v0.3.2, as it was only added in 0.4.0-preview.5 (released today). Are you getting your package directly from package manager or some other means?
     
  3. steveeHavok

    steveeHavok

    Joined:
    Mar 19, 2019
    Posts:
    481
    Looks like AtomSmasher001 is referring to a CalculateVelocityToTarget function which is a stub in the World Extensions (rather than in the Component Extension) and should be removed.
    As Adam mentions the new function is implemented in the new release. See the PhysicsVelocity component for details
     
  4. AtomSmasher001

    AtomSmasher001

    Joined:
    May 25, 2019
    Posts:
    2
    Yes. Thank you