mini_arcade_core.spaces.physics.kinematics2d¶
Module for Kinematic2D class.
Classes¶
Simple 2D kinematic body. |
Module Contents¶
- class mini_arcade_core.spaces.physics.kinematics2d.Kinematic2D[source]¶
Simple 2D kinematic body.
- Variables:
velocity – The velocity of the body.
accel – The acceleration of the body.
max_speed – The maximum speed of the body.
- velocity: mini_arcade_core.spaces.math.vec2.Vec2¶
- max_speed: float = 0.0¶
- step(transform: mini_arcade_core.spaces.geometry.transform.Transform2D, dt: float) None[source]¶
Move the body according to its velocity and acceleration.
- Parameters:
transform (Transform2D) – The transform of the body to update.
dt (float) – The time delta to step the body.