Representing character in FPS


I'm trying to represent my character in a first person view.

I don't need to represent weapons and something like that;

I just want to make my character collidable.

So I put a sphere with a boundingbox around the camera, but I don't succeed in making it transparent!

Here's my code:

AlphaState as =display.getRenderer().createAlphaState();
      Node actorNode = new Node("ActorNode");
      shape = new Sphere("Actor",cam.getLocation(),20,20,10);
      shape.setSolidColor(new ColorRGBA(1,1,1,0));
      wrapper = new BoundingBox();

Do u see any mistake?
Thank you :)

I believe you need to set the following:


That should make the object invisible.


Thank you darkfrog!

But now I can't see textures in the rest of the world :slight_smile:

Maybe I need to update something in the states…

Any suggestion?

Thank you very much  :slight_smile:

It worked that way…

it was a problem of renderer not yet started in that part of the code!

Thanks :slight_smile:

Good job. :wink: