from : http://gamemath.com/2011/09/detecting-whether-two-boxes-overlap/
The acronym AABB is often used for axially-aligned bounding box.
¿axially-aligned¿ means that the sides are parallel to the x- and y-axes;
With very high frequency one answers with the incorrect solution discussed below, work through some examples, and arrive at the correct one. ... read more
http://en.wikipedia.org/wiki/Transformation_matrix
http://pythonhosted.org/grease/index.html
[docs] def tick(self, dt):
"""Tick the mode's clock, but only if the world is currently running
:param dt: The time delta since the last tick
:type dt: float
"""
if self.running:
super(World, self).tick(dt)
... [read more](/p/boogiewoogie/blog/2013/05/looking-at-casey-duncans-grease-code/)
r09
r08
Regler le pb d'update des AABB pour les objets après leur transformation
Among their many advantages, managed attributes are used
- to protect an attribute from changes or
- to automatically update the values of a dependant attribute.
Logiques possibles en animation.
- comportements individuels
--> gérer les collisions ou non
--> orientation 'jeu video' et 'automates'
- gérer des scenarios en fonction du temps écoulé
--> implémenter une variable temps total
--> voir grease: world est une variable globale
- solution mixte : semi-autonomie + events scénarisés... read more