Physics forces do not affect the object

Bugs will be moved here once resolved.

Post » Thu Jun 04, 2015 8:43 pm

Problem Description
Physics forces do not affect the object while it's scale is changing.

Attach a Capx
http://files.efekt.sk/repository/Obrazky/Discussion%20Forum/preview.capx

Description of Capx
If you press the button, the object starts changing scale (to 0.5 or 1.0). Physics forces affect the object all the time.

Steps to Reproduce Bug
  • Run the layout
  • Click the button "Change Scale"

Observed Result
Object does not move even though force is applied to it

Expected Result
Object should follow the cursor, while it's scale is changing.

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
Windows 8.1, x64

Construct 2 Version ID
r206, 64 bit
B
24
S
3
G
1
Posts: 42
Reputation: 1,543

Post » Fri Jun 05, 2015 2:07 pm

Sorry, there's not much we can do about this: when you change the size of the object the engine has to destroy the physics body and create a new one in its place at the new size, and since the impulse was applied to the old object it gets lost. You don't need the physics behavior for the specific example in the .capx, but if you really do, try to use an object which stays the same size (or at least changes in single step jumps), and then have an object on top of it that gradually changes, so it has the same appearance.
Scirra Founder
B
397
S
236
G
88
Posts: 24,408
Reputation: 194,506

Post » Fri Jun 05, 2015 7:01 pm

oh ok. Thanks for your reply, I'll try to do it your way .
B
24
S
3
G
1
Posts: 42
Reputation: 1,543


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests