# Calculate angle and set impulse

Get help using Construct 2

### » Tue Aug 07, 2012 3:54 pm

Hey Guys, so the first Game is finished successfully and now i wanna make a new one.

I have decided to create something like an air hockey, there are several games @ iOS available.

Now i stuck @ the collision. I dont know how to give the Puck (Ball) a permanent Speed and calculate the angle @ the collision between Puck and the "Racket".

I wanna create a physics like in Billiard / Snooker.
B
3
Posts: 17
Reputation: 609

### » Tue Aug 07, 2012 10:00 pm

I have a feeling that Physics should do this automatically - you just have to turn down the friction of your puck, and find a way to control the racket. Make sure the collision masks are circular.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

### » Wed Aug 08, 2012 3:14 am

my Problem is to move the Puck automatically when I press the GameStart Button into a direction. The puck stuck at one place.

Collision works good with circle mask [thx :)] but i only found one solution to move the puck (Move Forward).

I expect that if i get a constant Speed to the puck the move Forward Problem will be solved.
B
3
Posts: 17
Reputation: 609

### » Wed Aug 08, 2012 3:44 am

You should be able to to 'apply impulse at angle' to get the puck moving in whichever direction you'd like (or a random one).
B
19
S
6
G
5
Posts: 98
Reputation: 4,484