![]() |
Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
|
Represents a collision entity that can be moved or repositioned in response to collision resolution. More...
Public Member Functions | |
| void | TranslateWorldPx (int dx, int dy) |
| Applies a translation in world pixel space. | |
| void | CancelVelocityComponent (bool cancelX, bool cancelY) |
| Cancels velocity along the specified axes after a solid collision push-out. Zeroing only the blocked axis preserves motion along the unblocked axis, enabling wall-sliding and platformer-style collision response. | |
Additional Inherited Members | |
| Properties inherited from Gondwana.Physics.Collisions.ICollisionEntity | |
| Rectangle | CollisionArea [get] |
| Gets the collision area of this entity in world pixel coordinates. | |
Represents a collision entity that can be moved or repositioned in response to collision resolution.
Definition at line 6 of file ICollisionMovableEntity.cs.
| void Gondwana.Physics.Collisions.ICollisionMovableEntity.CancelVelocityComponent | ( | bool | cancelX, |
| bool | cancelY ) |
Cancels velocity along the specified axes after a solid collision push-out. Zeroing only the blocked axis preserves motion along the unblocked axis, enabling wall-sliding and platformer-style collision response.
| cancelX | When true, zeroes the horizontal velocity component. |
| cancelY | When true, zeroes the vertical velocity component. |
Implemented in Gondwana.Drawing.Sprites.Sprite.
| void Gondwana.Physics.Collisions.ICollisionMovableEntity.TranslateWorldPx | ( | int | dx, |
| int | dy ) |
Applies a translation in world pixel space.
| dx | The horizontal displacement in pixels. |
| dy | The vertical displacement in pixels. |
Implemented in Gondwana.Drawing.Sprites.Sprite.