Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Beginning iOS Game Development
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning iOS Game Development
This is the forum to discuss the Wrox book Beginning iOS Game Development by Patrick Alessi ; ISBN: 978-1-1181-0732-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning iOS Game Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 18th, 2012, 01:19 AM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2012
Location: Singapore
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapt 7 - accelerometer - rolling ball question

I'm planning to build a maze game with a rolling ball.

How do you confine the ball to walls and obstructions?

It seems to me that there must be a more elegant solution than using the CGRectIntersectsRect() function..or?
  #2 (permalink)  
Old March 14th, 2014, 06:21 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That's the function I use but I'm sure there are other alternatives.
__________________________________________________ ______
Steve Works
Dalimar


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rolling Excel Solver joe888 Excel VBA 0 August 28th, 2011 12:23 PM
Lets get this forum rolling! SQLScott Windows Communication Foundation 6 August 9th, 2011 10:01 PM
Using Accelerometer thejrowe BOOK: Beginning iPhone SDK Programming with Objective-C 0 March 15th, 2010 07:01 PM
Why won't Mac's play ball Adam H-W Javascript 5 November 27th, 2006 09:59 AM
Ball class in C# devcon5 VB.NET 2002/2003 Basics 0 April 2nd, 2006 12:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.