Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
ShapeType2D Struct Reference

Structure representing a 2D physics body. More...

#include <shape_type_2d.h>

Public Types

enum  Type : int8_t { Circle = 0 , Polygon = 1 }
 

Static Public Member Functions

static b2ShapeType to_box2d_type (Type type)
 Converts the custom ShapeType2D::Type to the corresponding Box2D shape type.
 

Detailed Description

Structure representing a 2D physics body.

This struct encapsulates the Box2D body identifier along with its associated shapes.

Member Enumeration Documentation

◆ Type

enum ShapeType2D::Type : int8_t
Enumerator
Circle 
Polygon 

Member Function Documentation

◆ to_box2d_type()

static b2ShapeType ShapeType2D::to_box2d_type ( Type  type)
inlinestatic

Converts the custom ShapeType2D::Type to the corresponding Box2D shape type.


The documentation for this struct was generated from the following file: