Soft2D
A 2D multi-material continuum physics engine designed for real-time applications.
Loading...
Searching...
No Matches
S2PolygonShape Struct Reference

#include <soft2d_core.h>

Public Attributes

uint32_t vertex_num
 The number of vertices in the vertex buffer.
 
void * vertices
 A user-specified vertex buffer.
 

Detailed Description

Structure S2PolygonShape

A polygon shape. A polygon shape requires users to provide a pointer of S2Vec2 C array which stores all vertices of a polygon. These vertices should be in a counter-clockwise order.


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