class PF::Entity
- PF::Entity
- Reference
- Object
Overview
An entity is an object with a sprite and a physics body
Direct Known Subclasses
Defined in:
entity.crConstructors
Instance Method Summary
- #distance(other : Entity)
- #mass : Float64
- #mass=(mass : Float64)
- #position : Vector2(Float64)
- #position=(position : Vector2(Float64))
- #rotation : Float64
- #rotation=(rotation : Float64)
- #rotation_speed : Float64
- #rotation_speed=(rotation_speed : Float64)
- #sprite : Sprite | Nil
- #sprite=(sprite : Sprite | Nil)
- #update(dt : Float64)
- #velocity : Vector2(Float64)
- #velocity=(velocity : Vector2(Float64))