physics.Collision
pykraken.physics.Collision Information about a collision between two bodies.
More about physics.Collision
Collision events are generated during the physics step for colliders that have
enable_events set to True. Retrieve them with World.get_collisions().
At a glance
6 membersReference
PYTHON APIConstructor
methodphysics.Collision(/, *args, **kwargs)Initialize self. See help(type(self)) for accurate signature.
approach_speed
propertyapproach_speed: floatThe speed at which the bodies approached each other.
body_a
propertybody_a: physics.BodyThe first body involved in the collision.
body_b
propertybody_b: physics.BodyThe second body involved in the collision.
normal
propertynormal: Vec2The normal vector of the collision.
point
propertypoint: Vec2The point of impact in world coordinates.