Understanding effect physics parameter on objects

Just started using Construct 2? Post your questions here

Post » Sat Jun 06, 2015 4:06 pm

hello,

One parameter for physics is "stepping iterations".
I included this for one object at the "at start of layout" event.

Q1: Later on in the game, another instance of the object will be created. Do I need to include this action again at the creation of future instances? (in the same layout)

Q2: Do I need to need specify the stepping iteration for other physics objects as well? (or will it be set to the whole project/layout?)
B
28
S
6
G
7
Posts: 681
Reputation: 5,682

Post » Sat Jun 06, 2015 4:14 pm

from the manual:

Physics actions: Global settings

These actions affect Physics behaviors in general, not just the one it was set for.

Set stepping iterations
Set the number of velocity iterations and position iterations used in the physics engine. The default is 8 and 3 respectively. Lower values run faster but are less accurate, and higher values can reduce performance but provide a more realistic simulation.

so if you set it on start of layout for 1 object it is set for all objects and will not be changed untill you set it again..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Jun 06, 2015 11:01 pm

Thanks.
I always check the manual first, but I have missed that underlined line. :( :'(
B
28
S
6
G
7
Posts: 681
Reputation: 5,682

Post » Wed Jun 10, 2015 5:49 pm

stepping iteration can also be called or interpret for normal people as me, as how fast the sprite should go each frame, or how many frames to skip! if you set it to 0 then 100% of frames movement will be skipped even if you see the drawing the collision detection will just not coexist anymore, if you set it to 10 or 100 then youl get on each tick a check for collision and position that's why ur performance will drop a bit! and also LittleStain covered almost all!
B
78
S
23
G
69
Posts: 1,353
Reputation: 44,005


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest