Why i dont see my RigidBody object …

I was wondering why i dont see my RigidBody object in my jiglib physicalized Papervision3D scene.

var visualObject:DAE = new DAE(“elipsoide.dae”);
var visualObjectMesh:P3DMesh = new P3DMesh(visualObject);
var physicalObject:RigidBody = new JSphere(visualObjectMesh, 10);

var physics:Papervision3DPhysics = new Papervision3DPhysics(scene, 10);
physics.addBody(physicalObject);

Who has the answer?

I forgot to add the visualObject to the scene:

var visualObject:DAE = new DAE(“elipsoide.dae”);
scene.addChild(visualObject);
var visualObjectMesh:P3DMesh = new P3DMesh(visualObject);
var physicalObject:RigidBody = new JSphere(visualObjectMesh, 10);

var physics:Papervision3DPhysics = new Papervision3DPhysics(scene, 10);
physics.addBody(physicalObject);

So always remember – the visualObject is the “visual” representation of the physicalObject – while the physicalObject is the “physical” representation of the visualObject. Sounds logic but i had to make this clear to me….

So the answer to my question must be:
You can’t see a RigidBody object!

Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s