Skip to content

Physics.Shape

Matthew Daly edited this page Jan 4, 2023 · 6 revisions

Namespace: Verdant.Physics

class Shape

public class Shape

The foundation of PhysicsEntity colliders.

Navigate

Properties

Property Description
Vertices
Position
Dir The direction of the Shape.

Methods

void Draw

public virtual void Draw(SpriteBatch spriteBatch, Camera camera, Color color)

Draw the Shape (such as when visualizing a PhysicsEntity's body).

Parameter Description
SpriteBatch spriteBatch The SpriteBatch to render with.
Camera camera The Scene Camera to render through.
Color color The color to draw the Shape with.
Clone this wiki locally