How do I make the joint "harder"?

Get help using Construct 2

Post » Sun Nov 27, 2016 6:39 am

Hi guys,
I use "physic: Create limited revolute joint" in my app, it's work like this video https://youtu.be/WonE-b3XIaQ

It's look like a "rubber-bar". I want to the joint harder, hard as steel.
I try to set "Elasticity" to 0, but not work.
So, How do I make the joint "harder"?

My cap here https://drive.google.com/uc?export=down ... VZXbWNTTVU
B
34
S
16
G
18
Posts: 58
Reputation: 11,710

Post » Sun Nov 27, 2016 9:01 am

bump
B
34
S
16
G
18
Posts: 58
Reputation: 11,710

Post » Sun Nov 27, 2016 4:33 pm

You say, you want to make it "hard as steel".

The revolute joint is not made for that.
The revolute joint only restricts the relative angle between the connected objects.

It looks like you want to create a line of sprites right?
What you need is a distance joint or, even better (because less CPU consuming), the Pin to behaviour with the rope style.
Try those out.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Sun Nov 27, 2016 5:01 pm

It's a limitation of the physics engine - complex rigid box2d or asm.js structures simply cannot be made using c2. However, you could create a hidden physics object and pin the ball sprites to it; if you ever want to break the joints you'd then have to create new physics objects in the correct place.
A big fan of JavaScript.
B
74
S
20
G
71
Posts: 2,228
Reputation: 44,888


Return to How do I....?

Who is online

Users browsing this forum: TRMG and 31 guests