player and two controls attached to it.
The first is
CharacterControl and the second is my custom
CharacterControl the first and then, when I attach my
PlayerControl in it’s overridden method
setSpatial I get player’s
CharacterControl instance via
spatial is default field in every control that refer to spatial to wich it attached - player in my case).
PlayerControl I have mappings and listeners set up. According them I do manipulations with
CharacterControl, for example moving it. I mean, I manipulate one control from another through one spatial.
I think it isn’t best practice. But how can I create custom control for player if player isn’t
Spatial - he is
CharacterControl and in fact I control it’s
CollisionShape and not common
Maybe there is the best way of player creating?