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

SCNVector3 orbit animation #4

Open
zamderax opened this issue Oct 14, 2024 · 0 comments
Open

SCNVector3 orbit animation #4

zamderax opened this issue Oct 14, 2024 · 0 comments

Comments

@zamderax
Copy link

This is a fantastic library. I have two questions

Question 1

I've added a custom type as follows for SceneKit's SCNVector3

Tweener.addType(
            toType:{ values in return SCNVector3(x:Float(values[0]), y:Float(values[1]), z:Float(values[2])) },
            toArray:{ point in return point.buffer() }
        )

I'm trying to figure out how I can do an orbit tween between 2 SCNVector3 points. Is there anyway to customize this? Specifically I'm trying to orbit

  • from: SCNVector3
  • to: SCNVector3
  • radius: CGFloat
  • origin: SCVector3
    But also have the built in .easeInOut animation behavior

Question 2

Is there anyway to tween via a custom 3D bezier path in SceneKit?

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

No branches or pull requests

1 participant