Skip to content

namsk/spritekit-physics-bouncing-balls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpriteKit Physics Example: Bouncing Balls

A demo for using physics system of SpriteKit.

Simulation Tips:

If you want to make the balls stay inside of the scene, unremark the third line in the initWithSize method of the BouncingScene.m as follows:

[self setPhysicsBody:[SKPhysicsBody bodyWithEdgeLoopFromRect:self.frame]];

Change the properties on the physics body of the ball and then watch the differences of moving.

##Requirements:

  • Xcode 5 or higher
  • iOS 7 SDK or higher

About

A demo for using physics system of SpriteKit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published