Jump to content
Developer Wiki and Function Reference Links ×

Having Trouble Getting Rotations to Work as Expected/Wanted


ASag

Recommended Posts

Hey Forums,

I'm trying to rewrite a working (but super slow) script using a new methodology. I spent about six hours today making little progress, and I believe I have narrowed down my issue at the front end of my marionette network. When I initially built the start of it, I thought I had it working, but after seeing issues later, I noticed the rotations were not actually correct. In the end, I don't care which 'rotate' node/method (Rotate Line, Rotate, Set Entity Matrix...) is used because I have now tried a combination of all the ones I have used in the past without success.

I am attaching a copy of the file along with 3 example scripts. I have rewritten these multiple times today, so they probably aren't at their best state right now 😅 In the white box, you will find two circles. I want to find the midpoint of those circles and have a line that bisects it (if you draw a line between the circles, a line that ends up perpendicular to that). The green line is the result I am trying to get to.

Screenshot2024-11-27at3_16_36PM.thumb.png.4863daba91ee19a49d4a4ba0e91233e8.png

Can anyone point me to where I'm falling flat here? I'm attaching a copy of the above screenshot in VWX 2024 and 2025. I haven't felt this stuck in a number of months, especially on something that seems like it would be easy...

LineRotation v2024.vwx LineRotation2025.vwx

Link to comment

The other oddity that is throwing me off is that if I debug the bottom one, the connecting between ADD and ROTATE LINE is the exact value I'm expecting the resulting line to be on. This reports back 128, which is the angle of the green line/wanted result, but the resulting line isn't that.


Screenshot2024-11-27at3_47_38PM.png.e9ea8a622e9c1c0e5875710026ca377f.png

Link to comment

This forum is fantastic! Every time I've posted here, I get such great answers so quickly! I apparently overcomplicated this after I couldn't get it working. You are right; that gives the exact result I am looking for! In the past, I've had to do a bunch of oddities (at least, in my opinion) with the other rotation options and symbols.

Thank you so much!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...