Is there a way to associate user properties to Spatials in JME3? Reading the source code i would say no. Maybe the feature is planned but not yet implemented. If so, would it be possible to have a different system than what we have in JME2? Maybe something like:
Serializable setUserData(String, Serializable) //returns the replaced value or null
List<String> getUserDataKeys() // returns Collections.emptyList<String>() if actual user data map is null
Hm, sounds like an ok idea but I am not quite sure if something like this should be at such a low level already… This one should definitely be there for game entities etc. later, but I dont think that they will necessarily always extend Spatial… On the other hand if the user wants to do more with the spatial it should be easy enough to just extend it with these functions…
No it isnt, but as soon as its in developers will be using it so we a) have to think about if we want this feature in this form and b) think about how to implement it best if we want it For now, you can always extend your Spatial of choice.