Problem with boxes glued together

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

Problem with boxes glued together

Postby Xray » Sun Jan 20, 2013 9:56 pm

Can someone please explain why the blue horizontal bar gets skewed to one side after the scene starts? This is just a cam pushing on a push-rod which I plan to use in a scene. The blue bar is glued to the vertical green push-rod, but they do not stick together as expected. I even tried using a fixjoint instead of glue, and had the same problem. Thanks
Attachments
TEST SCENE.phz
(7.31 KiB) Downloaded 31 times
User avatar
Xray
 
Posts: 501
Joined: Sun Jun 17, 2012 6:12 am
Location: USA

Re: Problem with boxes glued together

Postby Kilinich » Sun Jan 20, 2013 11:05 pm

Ability to set pos/vel/angle/angvel is experimental and you can use it on your own risk ;)

Code: Select all
angle={0}
angvel={0}

... is the source of problem.

Then you change angle of one glued geom it starts moving related to others.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Problem with boxes glued together

Postby Xray » Mon Jan 21, 2013 3:50 am

Kilinich wrote:Ability to set pos/vel/angle/angvel is experimental and you can use it on your own risk ;)

Code: Select all
angle={0}
angvel={0}

... is the source of problem.

Then you change angle of one glued geom it starts moving related to others.


That was the problem! Now it works correctly. THANKS VERY MUCH! :clap:
User avatar
Xray
 
Posts: 501
Joined: Sun Jun 17, 2012 6:12 am
Location: USA

Re: Problem with boxes glued together

Postby Kilinich » Mon Jan 21, 2013 2:29 pm

If you need to change whole body - there is the way:
scene.setBodyAttrib{id := bodyID; vel3 := [Vx,Vy,angVel]}
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Problem with boxes glued together

Postby Xray » Mon Jan 21, 2013 6:11 pm

Kilinich wrote:If you need to change whole body - there is the way:
scene.setBodyAttrib{id := bodyID; vel3 := [Vx,Vy,angVel]}


I didn't know you could do that! Thanks very much! I'm sure that will come in handy in my future scenes. :thumbup:
User avatar
Xray
 
Posts: 501
Joined: Sun Jun 17, 2012 6:12 am
Location: USA


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 3 guests