www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Thomas. on January 27, 2011, 01:55:26 pm

Title: Object3D name
Post by: Thomas. 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);
Title: Re: Object3D name
Post by: Thomas. on January 27, 2011, 01:56:21 pm
 :)
Code: [Select]
String name=null;
if (obj[1]!=null) {
   name=((Object3D)obj[1]).getName();
}