Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: NevilleKemp

26. May 2012, 05:29:23 pm
Xith3D CommunityGeneral CategoryGeneral Discussion (Moderators: Marvin Fröhlich, 'n ddrylliog)How to attach custom data to nodes [SOLVED]
Pages: [1]
Print
Author Topic: How to attach custom data to nodes [SOLVED]  (Read 452 times)
pboechat
Just dropped in

Offline Offline

Posts: 15


View Profile
« on: 25. May 2011, 08:30:27 pm »

Plain simple question: how can I attach custom data to a node? (ie.: an integer) Looking at the JavaDoc I couldn't see it there, but it may be my fault. Further search in the forums lead me to nowhere.
« Last Edit: 27. May 2011, 01:32:59 am by pboechat » Logged
lonesomeStranger
Becoming dependent
**
Offline Offline

Posts: 111

197432680
View Profile
« Reply #1 on: 26. May 2011, 07:05:26 am »

Please look at http://xith.org/javadoc/xith3d/org/xith3d/scenegraph/SceneGraphObject.html, methods setUserData/getUserData.
Logged

Anton
pboechat
Just dropped in

Offline Offline

Posts: 15


View Profile
« Reply #2 on: 27. May 2011, 01:32:32 am »

Just what i needed. Thanks a lot!
Logged
hawkwind
Getting respectable
***
Offline Offline

Posts: 363



View Profile Email
« Reply #3 on: 02. June 2011, 09:13:20 pm »

dont limit yourself to data, I add collections of shader info, AI, behavior etc.   A defensive tower may have a Battle AI and a force field shader, once destroyed change the user data to no AI and a smoke particle system.
Logged
Aldrich101
Just dropped in

Offline Offline

Posts: 1


View Profile Email
« Reply #4 on: 15. September 2011, 12:44:25 pm »

You need more data for defensive.I got it many time due to have more data.
Logged

Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic