Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make end users not need to make a matrix or quaternion #90

Closed
davepagurek opened this issue Jun 12, 2018 · 2 comments
Closed

Make end users not need to make a matrix or quaternion #90

davepagurek opened this issue Jun 12, 2018 · 2 comments
Assignees

Comments

@davepagurek
Copy link
Member

The features I think we need to provide to enable this:

// Scaling an arbitrary amount around a point, or the origin if none are held
bone.hold(bone.point('base')).scale(1.5).release();

// Rotating an arbitrary amount around an axis
bone.hold(bone.point('base')).hold(bone.point('tip')).rotate(180).release();

// Rotate a random amount about a point
bone.hold(bone.point('base')).randomlyRotate().release();

// Rotate a random amount about a point, but keeping another point facing up
// (basically, rotate randomly in a hemisphere where up-hold is the normal.)
// If you have a better name for this sort of rotation, let me know, because this
// is still confusing
bone.hold(bone.point('base')).randomlyRotate({up: bone.point('tip')}).release();
@armcburney
Copy link
Member

Do we want this for the midterm demo? If so, I can grab it.

@davepagurek
Copy link
Member Author

Going to address the randomness ones separately here: #52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants