rotational height

AsymptoteellAsymptoteell Member Posts: 1,362
edited November -1 in Working with GS (Mac)
I'm trying to make an attribute that will be basically like the position Y but that will work regardless of rotation where if it is rotated 90 degrees it will be x position. If it's at 45° then it will be diagonal position. I want to make it so that it will change its height based on this and the mouse position. What I'm trying to do is make it so that I can make a rod drag wherever I pull the mouse. I need to be able to make it move relatively to the angle so that the original part can seem to stay stationary as the size increases in the rod.
Thanks in advance,
Asymptoteell

Comments

  • AsymptoteellAsymptoteell Member Posts: 1,362
    Right now I'm using self.position.Y for the rules. The dragging works fine if I only try to pull up. But if I pull in any other direction, it grows in both directions and doesn't match up to the mouse position.
  • AsymptoteellAsymptoteell Member Posts: 1,362
    Sorry. Had to bump this. I've been trying to figure it out without success. Please help.
Sign In or Register to comment.