Closed pkulev closed 7 years ago
> self._collider = SphereCollider(pos=Vec3(0, 0), radius=1)
And right after this, on next update the object should already check for collisions with other objects, right? @pkulev
Yes. All collisions should check on events
stage of iteration, on update
stage game objects should know that collision detected and where.
What is event
stage?
I'm afraid we don't quite have it.
Please consider with State
class.
Application calls 3 functions of current state.
events()
update()
render()
* add code for actions on collision
Further collision detection code will be moved into engine and colliders will turn into components for lightweight entities.
Collision detection tightly coupled with
event system
andobject system
.