Can you not just make the player a node child of the spaceship and make him move relative to the ship instead of relative to the universe?
Your option ( 1 ) is likely to result in very strange behaviour, and calculating the force for your player to move at the same speed as the ship would be a very indirect way of updating his position.
Option ( 2 ) could be executed nicely, but really what you would want is changes in states, not really physically moving around the player. Detach one state ( inside ) and attach the other ( outside ).
@nihal said:
Can you not just make the player a node child of the spaceship and make him move relative to the ship instead of relative to the universe?
Your option ( 1 ) is likely to result in very strange behaviour, and calculating the force for your player to move at the same speed as the ship would be a very indirect way of updating his position.
Option ( 2 ) could be executed nicely, but really what you would want is changes in states, not really physically moving around the player. Detach one state ( inside ) and attach the other ( outside ).
Okay thanks a lot:D
Should I use option 2 or "just make the player a node child of the spaceship".
As I said I am new to jME so how do I make a player a node? I only know about CapsuleCollisionShape, is that a node?
Well, I imagine the two play modes between being inside and being outside the ship are very different, so I would separate them into individual states. This has the advantage that both “worlds” does not have to exist at the same time, which will be more efficient.
Go with option 2, but don’t make a “secret room” far out in space. Use states and make them detachable.
@KuroSei said:
Stop moving the ship. Start moving the world.
@normen said:
Yeah, you can adapt the gravity direction dynamically and just move the world / background.
Ahh so many possibilites, what do I do?
Can you attach a player node to the ship and move it relatively to it, as @nihal said.
I think it's possible but how do I do it? Can I attach CharacterControl to it?
Or are there other ways to make a player?
@nihal said:
Well, I imagine the two play modes between being inside and being outside the ship are very different, so I would separate them into individual states. This has the advantage that both "worlds" does not have to exist at the same time, which will be more efficient.
Go with option 2, but don't make a "secret room" far out in space. Use states and make them detachable.
Check this article on states:
https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:application_states
I don't know, I would rather go with this one
@nihal said:
Can you not just make the player a node child of the spaceship and make him move relative to the ship instead of relative to the universe?
But I don't know how to make that player Node. Every time I make a played I use CharacterControl and that is not a spatial nor a node.