Jump to content

[Question] In search for a function: getRotationFromElementOffset


Recommended Posts

Posted (edited)

Hello forums!

I've been working on a project of mine, and I'm in need of a function which is similar to getPositionFromElementOffset (scroll down to examples). I can't wrap my head around matrices at all, and I would love to have a similar function, but with rotations instead (getting a rotation offset from an element). Would someone be able to help me out? I'd be very thankful!

Edited by Fierelier
  • Scripting Moderators
Posted

use findRotation3D

Posted

I don't think I can pull off what I want with findRotation3D (unless I'm missing something). I'm looking for a way to get a relative offset for an object, so I can, for example, make an object roll forward/backward/left/right correctly.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...