Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to align a parts bottom surface with surface normal returned from FindPartOnRay?

Asked by 8 years ago

and more specifically: while maintaining it's rotation on it's Y axis... Here's a gif of what I mean http://i.imgur.com/Z4rqAIP.gifv only in my case I'm using BodyVelocity and BodyGyro instead of plain physics.

After spending the night working out problem I figured I get some help. In the mean time I guess I'll try to wrap my head around the rotation matrix.

0
By relative rotation, you mean its rotation on its Y-Axis? XAXA 1569 — 8y
0
Yes, that's what I was thinking. MrgamesNwatch 65 — 8y
0
Do you want to use a BodyGyro to align the parts? XAXA 1569 — 8y
0
Yup MrgamesNwatch 65 — 8y

Answer this question