Hi jME Team,
I would like to propose to have references to ‘user objects’ in Spatial. This ‘user objects’ could be the PhysicsObject or any other application specific object that is associated with the spatial.
This would prevent using memory and time consuming maps to find game logic associated with a visual object.
Or is there even a solution for this in jME?
If someone is interested I could post a memory saving and flexible implementation here (lazily initialized ArrayList).
Hi jME Team,
I think something like this has been proposed before and the general consensus was not to put something like that into spatial.
It’d be better to create your own container class and a manager for it that would do all that work for you rather than bloating the spatial class.
If you need a good place to start check out DP’s GameSystem here
I think something like this has been proposed before and the general consensus was not to put something like that into spatial
Oh :// where can I find that? (Interested in the reasons)
DPs GameSystem uses the same way I currently map the objects (and, I think, everyone else does :) )
Upon reading once more I’m not sure if it’s totally related. Anyway, looks like the proposal in the above thread is under consideration by Renase and Mojo at the moment.
Ok, after reading the thread (and filtering lots of rubbish in there) I don’t think that my proposal seems to be an option for Renanse or Mojo as they want to decrease memory usage of Spatial.
Anyways I should post there not here…