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

Is is wrong to assign the movement of an enemy (2D) platformer using Lerp instead of rigidbody?

Discussion in 'Scripting' started by Like-A-Sir, Jan 29, 2016.

  1. Like-A-Sir

    Like-A-Sir

    Joined:
    Sep 14, 2015
    Posts:
    33
    Good evening!

    Is is wrong to use linear interpolation instead of physics in my enemy ai? The game is a 2D platformer.

    Thank you!
     
  2. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    There is no wrong except your assumption there is a wrong in this case :) it's perfectly fine.
     
    Like-A-Sir likes this.
  3. Like-A-Sir

    Like-A-Sir

    Joined:
    Sep 14, 2015
    Posts:
    33
    Thank you!