getNbShapes returning 0

I have created an actor and add him in scene and next I create a shape.

When I use the function getNbShapes() the return is 0. Why?

I created the actor and shape and next I add in Scene. The same error occurs.

Just with plane return 1. With box, sphere, capsule, convex, triangle the return is 0.

Hi,

Could you please post your code here? Without seeing the code its difficult to dagnose the problem.

Thanks,

Gordon

I’m too dumb!

I was calling the function before to create the shape.

Thanks and sorry!