NcEngine
Constraints.h File Reference
#include "ncengine/ecs/Entity.h"
#include "ncengine/physics/SpringSettings.h"
#include <variant>

Go to the source code of this file.

Classes

struct  nc::FixedConstraintInfo
 Constraint settings to rigidly fix two bodies together, limiting all relative motion. More...
 
struct  nc::PointConstraintInfo
 Constraint settings to attach two bodies at a point, limiting relative motion to rotation only. More...
 
struct  nc::DistanceConstraintInfo
 Constraint settings to keep two bodies within a specified distance range. More...
 
struct  nc::HingeConstraintInfo
 Constraint settings to attach two bodies with a hinge, limiting relative motion to rotation about a single axis. More...
 
struct  nc::SliderConstraintInfo
 Constraint settings to attach two bodies with a slider, limiting relative motion to a single axis of translation. More...
 
struct  nc::SwingTwistConstraintInfo
 Constraint settings to attach two bodies with a shoulder-like joint, limiting relative motion to rotation within a cone. More...
 
class  nc::Constraint
 A physics constraint attaching the owning RigidBody to another. More...
 

Typedefs

using nc::ConstraintInfo = std::variant< FixedConstraintInfo, PointConstraintInfo, DistanceConstraintInfo, HingeConstraintInfo, SliderConstraintInfo, SwingTwistConstraintInfo >
 Generalized constraint initialization information.
 
using nc::ConstraintId = uint32_t
 Unique value identifying internal Constraint state.
 

Enumerations

enum class  nc::ConstraintType : uint8_t {
  FixedConstraint , PointConstraint , DistanceConstraint , HingeConstraint ,
  SliderConstraint , SwingTwistConstraint
}
 Type of a Constraint.
 

Detailed Description