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

How may I work with Motor6D objects?

Asked by 6 years ago

I've recently been working with animations, and now I'd like to go further on with Motor6D objects. (e.g. character looks around based on camera angles)

An article would be helpful to get me started. (Trusting articles from developer.roblox.com only)

I'll be marking answers as helpful as soon as I can. Thanks.

1 answer

Log in to vote
3
Answered by
ben0h555 417 Moderation Voter
6 years ago

I would use Motor.DesiredAngle and Motor.CurrentAngle to set the direction of the head.

DesiredAngle is the angle the Motor6d wants to be in, it will attempt to angle itself accordingly.

CurrentAngle is well, the current angle.

So, in order to prevent Motor6d from 'correcting' itsself, you need to set the DesiredAngle of the Motor6d, then set the CurrentAngle of it.

In order to get perspective of what a angle means in Motor6d, you might need to experiment with Cframes.

0
Thanks! Helps very much. Mirzadaswag 110 — 6y
Ad

Answer this question