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

#include <soft2d_core.h>

Public Attributes

S2Vec2 center
 The center of the object.
 
float rotation
 The rotation of the object (radians).
 
S2Vec2 linear_velocity
 The linear velocity of the object (meters per second).
 
float angular_velocity
 The angular velocity of the object (radians per second).
 
S2Mobility mobility
 The mobility of the object.
 

Detailed Description

Structure S2Kinematics

The kinematic properties of an object (S2Body, S2Collider, or S2Trigger).

Since a body often contains multiple particles, every particle has its own kinematic state during the simulation. Thus, when creating a body, the specified S2Kinematics parameter is only meaningful for body initialization as the initial kinematic state of the body. A body's kinematics value becomes meaningless once the simulation starts.


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