Timeline for Scale object based on another object's position
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 25, 2017 at 4:52 | comment | added | jjimenezg93 | Nice to know :) You're welcome | |
Aug 25, 2017 at 1:23 | vote | accept | Mira | ||
Aug 25, 2017 at 1:23 | comment | added | Mira | It's ok, fixed already, your scalefactor method is working, it's because all four lines are children of another gameobject, so I just remove their parent and they are behaving like they should be. Problem solved. Thanks again )) | |
Aug 24, 2017 at 6:59 | comment | added | Mira | Neither do I, I changed my parent transform.position to transform.localPosition and the parent is behaving like how I wanted, but not the children. I don't know why | |
Aug 24, 2017 at 6:47 | comment | added | jjimenezg93 | I asked because I wouldn't expect it to resize only in one direction | |
Aug 24, 2017 at 6:46 | comment | added | Mira | Each lines have its own pivot point, so it's at the center for each object, and repositioning by means using my first posted code, yes? I'm sorry, I don't get what you mean by that... | |
Aug 24, 2017 at 5:30 | comment | added | jjimenezg93 | Could you try repositioning as you did before, before doing this scaleFactor math? Where is your pivot point, btw? | |
Aug 23, 2017 at 9:11 | comment | added | Mira | I tried your code, I able to make it accurate but only on the right side of the wall, I put them in my updated question. | |
Aug 23, 2017 at 5:54 | comment | added | jjimenezg93 | Edited my answer | |
Aug 23, 2017 at 5:53 | history | edited | jjimenezg93 | CC BY-SA 3.0 |
added 672 characters in body
|
Aug 22, 2017 at 9:57 | comment | added | Mira | Already updated the question, hope it's clear to you what I am trying to achieve. | |
Aug 22, 2017 at 9:50 | comment | added | jjimenezg93 | Could you update the question with more details, please? So I can see how you do and use this math, where v3Scale and frontWall come from, etc. | |
Aug 22, 2017 at 9:48 | comment | added | Mira | Yes you are correct, I did try your math, but I still got the same result like before. I don't know what is happening though... | |
Aug 22, 2017 at 8:45 | history | answered | jjimenezg93 | CC BY-SA 3.0 |