Physics- how to add a force (angle, force)

Get help using Construct 2

Post » Sat Nov 23, 2013 5:12 am

Hello,

I have an object with physics applied. I want to be able to make it (when pressing space) fire its thrusters. This would create a force. I have programmed this sort of thing before but can't figure out how to do it in construct. I want to simply get the objects heading (get its angle) and then apply a force at that angle. A simple vector problem. The problem is is that I can't find a way of getting a physics objects angle... as there is no get angle. I can make it work in custom movement, but I want physics. :(


Anyone have an idea?
Image
B
34
S
12
G
2
Posts: 566
Reputation: 5,282

Post » Sat Nov 23, 2013 7:56 am

Isn't it just apply force at angle?
B
98
S
20
G
8
Posts: 1,066
Reputation: 12,758

Post » Sat Nov 23, 2013 8:00 am

The objects angle should be available for you to pick at the top.
B
98
S
20
G
8
Posts: 1,066
Reputation: 12,758

Post » Sun Feb 02, 2014 10:27 pm

Hey thanks, I had been using contruct classic at the time (i'm not sure if it had that option - maybe it did) c2 has it though. Thanks for your help!
Image
B
34
S
12
G
2
Posts: 566
Reputation: 5,282


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests