Author Topic: Object3D name  (Read 1106 times)

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Object3D name
« on: January 27, 2011, 01:55:26 pm »
Can I anyhow find name of Object3D if I use this?
obj = world.calcMinDistanceAndObject3D(world.getCamera().getPosition(), dir, PLAYER_HAND_LENGTH);

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Object3D name
« Reply #1 on: January 27, 2011, 01:56:21 pm »
 :)
Code: [Select]
String name=null;
if (obj[1]!=null) {
   name=((Object3D)obj[1]).getName();
}