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

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

    Administrator

    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