How to add a plane with python in BGE

Hello everybody,

I’m very confused about adding a plane in the BGE with python to my scene. With any other object this is not a problem.
For example: scene.addObject(“Cube”, owner) worked very well when I’ve got the object named “Cube” in another layer.

The problem is that this dosn’t work for planes. When I try it nothing happens BUT when I extrude the vertices of the plane so that I create a cube than it works.

Can anybody help my to add a plane with only four vertices from a layer to my scene?

Thanks a lot to anybody how’s trying to help me and please excuse my bad englisch!

best regards!

Martin

Wrong forum, Game Engine Support and Discussion is for this kind of questions.

Are you sure that the plane doesn’t have the normals inverted? Maybe when you add the plane, it’s rotated, so it’s culled because it’s backwards.

Hey carlo697 you were absolutly right!

Thanks a lot!