Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

Thread: Random Rocks
View Single Post
Old 12-08-2009, 09:47 PM   #14 (permalink)
rahul7star
Registered Member
 
Join Date: Aug 2009
Posts: 126
rahul7star is on a distinguished road
Default

Hi
Thanks for that
for (int i = 0; i< [objectsArray1 count]; i++){

UIView* currentBomb = (UIView*)[objectsArray1 objectAtIndex:i];

if(CGRectIntersectsRect(currentBomb.frame, fireBall1.frame)){
NSLog(@"Collision ");
}

}



now my collision is working but its not when they are falling
collision is occurring at bottom (when falling image sits at bottom)
rahul7star is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,387
Threads: 94,003
Posts: 402,459
Top Poster: BrianSlick (7,978)
Welcome to our newest member, latoncefrank
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:29 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.