mini_arcade_core.spaces.physics.kinematics2d ============================================ .. py:module:: mini_arcade_core.spaces.physics.kinematics2d .. autoapi-nested-parse:: Module for Kinematic2D class. Classes ------- .. autoapisummary:: mini_arcade_core.spaces.physics.kinematics2d.Kinematic2D Module Contents --------------- .. py:class:: Kinematic2D Simple 2D kinematic body. :ivar velocity: The velocity of the body. :ivar accel: The acceleration of the body. :ivar max_speed: The maximum speed of the body. .. py:attribute:: velocity :type: mini_arcade_core.spaces.math.vec2.Vec2 .. py:attribute:: accel :type: mini_arcade_core.spaces.math.vec2.Vec2 .. py:attribute:: max_speed :type: float :value: 0.0 .. py:method:: step(transform: mini_arcade_core.spaces.geometry.transform.Transform2D, dt: float) -> None Move the body according to its velocity and acceleration. :param transform: The transform of the body to update. :type transform: Transform2D :param dt: The time delta to step the body. :type dt: float .. py:method:: stop() -> None Stop the body by setting its velocity to zero.