Open kpreid opened 2 years ago
Behaviors should in general be able to “occupy” certain regions of space and influence what happens in them.
This is now implemented; the "attachment" field stores a bounding box. No progress yet on making bodies into behaviors.
Right now, the relationship between
Character
and itsSpace
is one-directional: theCharacter
defines a camera-position which is, by its own efforts, affected by gravity and collision with theSpace
.Instead, the
Space
should haveBehavior
s which are attached physics bodies and optionally linked toCharacter
s. This will enable:Space
.The reason that these should be space
Behavior
s and not their own kind of thing is becauseBehavior
s should in general be able to “occupy” certain regions of space and influence what happens in them. (On the other hand, we could also have a world where aSpace
containsBody
s in the same way it containsBlock
s, and theBody
s can haveBehavior
s themselves.)