aleGutierrezMarin / jiglibflash

Automatically exported from code.google.com/p/jiglibflash
1 stars 0 forks source link

jBox.SideLengths gives unexpected results #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I have rather complex scene, so you might not directly notice the bug. I use 
boxes for now to 
create curved floor.

What is the expected output? What do you see instead?
I create the floor dynamically as the objects move, this is my work around for 
now:
                PhysicsSystem.getInstance().RemoveBody(jbox);
                jbox = new JBox(jbox.BodySkin , false , sideX , 500 , sideZ);
                PhysicsSystem.getInstance().AddBody(jbox);
                jboxes[i + s] = jbox;

but when set sideLengths instead, my floor doesn't align anymore and objects 
fall through.
                jbox.SideLengths = new JNumber3D(sideX , 500 , sideZ);

Used version : JigLibFlash v0.28 the downloadable

Original issue reported on code.google.com by barcin...@gmail.com on 18 Feb 2009 at 12:01

GoogleCodeExporter commented 8 years ago
I'm not fully aware of your situation, But I guess you want to change the size 
of the 
immobile box dynamically. I have modified some code, you can update svn. let me 
know 
if it's work in accordance with you want

Original comment by muzerly on 18 Feb 2009 at 2:58

GoogleCodeExporter commented 8 years ago
Thanx for a quick reply, though it still didn't fix my problem, I'll send you a 
demo that illustrates what I'm trying 
to do.

Original comment by barcin...@gmail.com on 18 Feb 2009 at 11:50

GoogleCodeExporter commented 8 years ago

Original comment by muzerly on 7 Apr 2009 at 12:19