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

Ellipse Animation 3d with c#

Discussion in 'Getting Started' started by AstridLongi, Apr 6, 2020.

  1. AstridLongi

    AstridLongi

    Joined:
    Nov 4, 2019
    Posts:
    15
    Hi guys, I really need your help, I am trying to make this 3D animation by code,
    I have tried with transform, translate, vector3, quaternion and nothing works I'm really lost, this is what I have now

    but I do not know how to make the line follow the ball green without moving from the blue point. I guess i need to work with the scale to, but I´m kind of knew so I dont know what can works. I will be very grateful for your help
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,851
    That's not the sort of thing Unity is really good at. It'd be pretty easy in Mini Micro (PM me if you want to try that), or with a plugin like Vectrosity or Pixel Surface, but with stock Unity it's going to be pretty complicated. Your best bet would probably be to use a LineRenderer to draw the lines, and possibly the ellipse too.
     
  3. AstridLongi

    AstridLongi

    Joined:
    Nov 4, 2019
    Posts:
    15
    Hi, Thanks for your suggestion, I try with LineRenderer and it works, thanks for your time, have a nice day!!
     
    JoeStrout likes this.
  4. AstridLongi

    AstridLongi

    Joined:
    Nov 4, 2019
    Posts:
    15
    Hi, Thanks for your suggestion, I try with LineRenderer and it works, thanks for your time, have a nice day!!