Setting Rigid Springs
3 posts • Page 1 of 1
Setting Rigid Springs
Hi Algodoo! I'm trying to use your software to simulate a cantilever resonance in the form of springs with end masses. I developed a wheel-operated piston that drives these spring-mass systems, but after awhile, because of the wheel operation, the springs develop an x-direction motion, which I do not desire. Is there any way to restrict the x-displacements of the springs and masses? Perhaps by setting some code? I am reminded of how the videogame littlebigplanet allows for the ends of the springs to have locked rotation. Wondering if this is possible. Cheers!
P.S. I tried surrounding the piston with two fixed rectangles on either side to ensure it doesn't move in the x-direction, but it still seems to happen.
P.S. I tried surrounding the piston with two fixed rectangles on either side to ensure it doesn't move in the x-direction, but it still seems to happen.
- Samuel_PH_Loke
- Posts: 2
- Joined: Thu May 21, 2015 11:35 am
Re: Setting Rigid Springs
You could do pos/angle adjustment in postStep code.
Dream of Algodoo as game development engine...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Setting Rigid Springs
What command should I punch in to fix the x-displacement to zero? Is there a library I can refer to? Thank you!
- Samuel_PH_Loke
- Posts: 2
- Joined: Thu May 21, 2015 11:35 am
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 17 guests