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

Structure representing the transform of a 2D physics body. More...

#include <body_2d.h>

Public Attributes

Body2D body
 
Vector3 position
 
float rotation {0.0f}
 
Vector3 center_of_mass {0.0f, 0.0f, 0.0f}
 

Detailed Description

Structure representing the transform of a 2D physics body.

Includes position and rotation information.

Member Data Documentation

◆ body

Body2D Body2DTransform::body

◆ center_of_mass

Vector3 Body2DTransform::center_of_mass {0.0f, 0.0f, 0.0f}

◆ position

Vector3 Body2DTransform::position

◆ rotation

float Body2DTransform::rotation {0.0f}

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