Physics Movement....

Get help using Construct 2

Post » Fri Feb 14, 2014 5:32 pm

Is there a way to limit the movement of a Physics object to ONLY one Axis?

When I tap/click, I have C2 apply an impulse upon the object at angle 270, so that it will move up.

The problem is, over time it moves slightly "out"(along the X axis) It only needs to move "up" along the Y axis.

How do I prevent forward motion with physics, or do I just need to create custom movement?

Thanks

B
12
S
2
Posts: 75
Reputation: 2,126

Post » Fri Feb 14, 2014 5:49 pm

If you have a fixed x position then you might be able to :

apply physics force (amount) towards ((fixed X position),-500) at image point 0

which should help to correct for any deviation on the x ?

not tested - just a thought....

August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,892

Post » Fri Feb 14, 2014 6:07 pm

@RamPackWobble

Thanks, I'll look into it. I may have fixed it with Platform behavior though, I had no idea it was that versatile.

Thanks again!
B
12
S
2
Posts: 75
Reputation: 2,126


Return to How do I....?

Who is online

Users browsing this forum: Akia410, Construct Monkey, warmty and 6 guests