Revolute joint behaviour

Bugs will be moved here once resolved.

Post » Sun Jul 05, 2015 8:53 am

Problem Description
when body moves in circular fashion attached arm follows as sopposed but at certain angle just goes bezerk and counterspinns till it settles in a starting angle.

Attach a Capx
https://dl.dropboxusercontent.com/u/169390986/PUB/JOINTS%20PROBLEM.capx

Description of Capx
body sprite has car movement so just try to drive it in circle

Steps to Reproduce Bug
  • move with arrow keys body sprite in circle.

Observed Result
attached arm sprite at certain angle makes a spin on its own.

Expected Result
well.. if im not doing something wrong i would expect arm sprite to follow its body within designated angels?

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

Operating System and Service Pack
Win 7 64 pro uptodate

Construct 2 Version ID
latest stabile build 206
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Sun Jul 05, 2015 4:30 pm

You're using physics behavior, and trying to manipulate it with another behavior, that's probably not a bug, and it's stated in manual.
Therefore it is highly recommended to control Physics objects entirely via the Physics behavior (by setting forces, impulses, torques etc.).
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Wed Jul 08, 2015 8:35 am

@Sisyphus
thank you for this input...
Do you have any ideas how can i achieve desired effect (moving the body and that its parts move acordingly and interact with the solids along the way)?

thank you!
Last edited by irina on Wed Jul 08, 2015 8:36 am, edited 1 time in total.
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Wed Jul 08, 2015 8:35 am

Sisyphus wrote:You're using physics behavior, and trying to manipulate it with another behavior, that's probably not a bug, and it's stated in manual.
Therefore it is highly recommended to control Physics objects entirely via the Physics behavior (by setting forces, impulses, torques etc.).

I've tried it too it spins quickly like some kind of make shit helicopter - had to limit angular velocity
B
29
S
6
G
2
Posts: 232
Reputation: 2,893

Post » Thu Jul 09, 2015 11:05 am

@mrlight234

Do you have any ideas how can i achieve desired effect (moving the body and that its parts move acordingly and interact with the solids along the way)?

thank you!

PS: ... or anyone else for that matter!?
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Thu Jul 09, 2015 11:10 am

If only the physics plugin had kinematic bodies. If you search the forums there is a hack, about 6 lines, you can enter into the standard plugin to enable kinematic bodies during runtime. I have no idea why this is not already enabled :/.
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,207
Reputation: 43,836

Post » Thu Jul 09, 2015 4:09 pm

@Ashley

Please try my capx .. at 90° it counterspinns... to 0° and vice versa depending on the moition of the body.
Is it a bug or am i doing it wrong?
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Wed Jul 15, 2015 11:54 am

Closing as won't fix, please see the physics tutorial, the other behaviors conflict with it.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest