Physics Test

Discussion and feedback on Construct 2

Post » Sat Oct 01, 2011 12:34 pm

Remember Lunar Lander?

A quick example to show physics in action. Control the lander with the arrow keys and land on the platform.

Try it HERE.

BTW I know the Physics.VelocityY is exposed but I can't seem to get it to display :(   Without it, I can't really calculate the landing velocity, which would determine if it would crash or not. Anyone else tried?zenox982011-10-01 13:03:12
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,844
Reputation: 48,289

Post » Sat Oct 01, 2011 5:33 pm

Pretty fun. :P
B
47
S
10
G
6
Posts: 455
Reputation: 8,326

Post » Sat Oct 01, 2011 6:13 pm

Why even use physics for this? The whole point of physics is for realistic interactions between moving objects. What you have here can easily be done with just 2 variables, or more easily, the custom movement behavior. Using the physics object for this isn't efficient. Not trying to be rude or anything; just trying to make you a better programmer! Davioware2011-10-01 18:16:47
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Sat Oct 01, 2011 6:18 pm

The point of it WAS to test the physics, that's all it was for. I wanted to test the Y, Y and Angular velocity parameters, and this seemed the easiest way.zenox982011-10-01 18:45:58
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,844
Reputation: 48,289

Post » Sat Oct 01, 2011 7:20 pm

nice exemple
it works, and only this is important to me. I'm not a programmer and I'll never be.
B
21
S
5
G
5
Posts: 163
Reputation: 5,028

Post » Sat Oct 01, 2011 7:41 pm

how to set gravity power for physics?
B
17
S
3
G
3
Posts: 109
Reputation: 2,747

Post » Sat Oct 01, 2011 7:58 pm

@jourdan

Check these 2 articles from Ashley. They explain all about the physics behavior. Very useful :)
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,844
Reputation: 48,289

Post » Sat Oct 01, 2011 8:09 pm

Question, is there a way to make some objects heavier than others? I am guessing not by gravity though. My best guess, would be to set density/weight or something of the sort?
B
47
S
10
G
6
Posts: 455
Reputation: 8,326

Post » Sat Oct 01, 2011 9:03 pm

@zenox98 awesome! I love these simple games that still have substance to them and I always loved that old game!

@VampyricalCurse I thought that's what the density parameter was, no?
B
126
S
7
G
4
Posts: 185
Reputation: 7,233

Post » Sun Oct 02, 2011 3:57 pm

@Ugotsta

Me too. This was just something to test out the new physics behavior. Now updated to include zoom when landing and explosions (wooooot!) :)

BTW Still can't retrieve the physics.velocityy or x values. Anyone else tried?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,844
Reputation: 48,289

Next

Return to Construct 2 General

Who is online

Users browsing this forum: KaMiZoTo and 17 guests