Skip to content

A small Swift demo of using radialGravityField in SceneKit

License

Notifications You must be signed in to change notification settings

jeffhandy/GravityNode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GravityNode

A small Swift demo of using radialGravityField in SceneKit

This demo show how to use a SCNPhysicsField.radialGravity() and add it to a node to simulate gravitational attraction between nodes. Also demonstrates how using a force vector to a node you can simulate "capturing" a "planet" in the attractor node's gravity. This is a proof of concept for a game design.

alt text

About

A small Swift demo of using radialGravityField in SceneKit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages