Is it possible to change RigidBody´s shape dimensions?

Software: Away3D 4.x

ranoya, Newbie
Posted: 09 December 2014 08:36 PM   Total Posts: 29

It looks like a simple desire and something that many people would like to do, but i´ve not gotten yet.

I created a RigidBody instance, using a AWPSphereShape, for example.

At some time, I would like to change the AWPSphereShape instance radius.

I tried it directly:

radius 100;
shape = new AWPSphereShape(radius);
body = new RigidBody(shapenull1);
...
shape.radius 1000

When I change the radius to 1000, the rigid body still behave as with the old radius value.

Is there a solution for this?

Thanx.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X