Skip to content

SCNVector3 orbit animation #4

@zamderax

Description

@zamderax

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions