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

Enumeration of 2D body types. More...

#include <body_type_2d.h>

Public Types

enum  Type : uint8_t { Static = 0 , Dynamic = 1 , Kinematic = 2 }
 

Static Public Member Functions

static b2BodyType to_box2d_body_type (BodyType2D::Type type)
 Converts the custom BodyType2D::Type to the corresponding Box2D body type.
 

Detailed Description

Enumeration of 2D body types.

This struct defines the different types of physics bodies that can be created in a 2D physics world.

Member Enumeration Documentation

◆ Type

enum BodyType2D::Type : uint8_t
Enumerator
Static 
Dynamic 
Kinematic 

Member Function Documentation

◆ to_box2d_body_type()

static b2BodyType BodyType2D::to_box2d_body_type ( BodyType2D::Type  type)
inlinestatic

Converts the custom BodyType2D::Type to the corresponding Box2D body type.


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