Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Eduardo Rojas
Eduardo Rojas
4,084 Points

How can i check where are my nodes colliding

IM doing a trampolines which you can move but the problem is that if you "catch" a node from the side it will flip but i don't want that i just want to make the nodes bounce when they hit the trampoline from the upper part

Richard Rodriguez
Richard Rodriguez
2,687 Points

if you set up a physics body for your trampoline then then just make the dynamic = NO.

1 Answer

Richard Rodriguez
Richard Rodriguez
2,687 Points

-(void) setupPhysicsBody {

self.physicsBody.dynamic =NO;

}

Eduardo Rojas
Eduardo Rojas
4,084 Points

I have already done that but the objects falling still can get a change in direction when hitted from the side

Now i have solved this by adding the "collision test" so thank you anyways