Search Unity

2D Enemy Pivot

Discussion in '2D' started by SEVEN-ARTS, Oct 8, 2021.

  1. SEVEN-ARTS

    SEVEN-ARTS

    Joined:
    Aug 31, 2020
    Posts:
    40
    Hello,
    I want my opponent to pivot towards the player with a pivot for his weapon, does anyone know how to do that?
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,491
    Really, this is a very low effort post. You need to provide some info on EXACTLY what you're asking for. A complete general script solution that fits perfectly into what you've got? Or are you asking about how to perform calculations with Transforms? Or Physics?

    TBH most of your posts feel like this so please spend some time describing what you've tried and which bits you don't understand rather than making others put all the effort into asking.

    Also, this isn't a post for the 2D forum, at best it's a post for the scripting forum because it's so general.
     
    MousePods, SEVEN-ARTS and Kurt-Dekker like this.