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
33
S
11
G
2
Posts: 563
Reputation: 5,141

Post » Sat Nov 23, 2013 7:56 am

Isn't it just apply force at angle?
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 961
Reputation: 10,717

Post » Sat Nov 23, 2013 8:00 am

The objects angle should be available for you to pick at the top.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 961
Reputation: 10,717

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
33
S
11
G
2
Posts: 563
Reputation: 5,141


Return to How do I....?

Who is online

Users browsing this forum: BadMario, istero, mr32D, mtnboy22, user5487 and 1 guest