3#include <JoltPlugin/Constraints/JoltConstraintComponent.h>
27 virtual void CreateContstraintType(JPH::Body* pBody0, JPH::Body* pBody1)
override;
28 virtual void ApplySettings()
final override;
29 virtual bool ExceededBreakingPoint()
final override;
43 void SetLowerLimitAngle(
plAngle f);
44 plAngle GetLowerLimitAngle()
const {
return m_LowerLimit; }
47 void SetUpperLimitAngle(
plAngle f);
48 plAngle GetUpperLimitAngle()
const {
return m_UpperLimit; }
51 void SetFriction(
float f);
52 float GetFriction()
const {
return m_fFriction; }
59 void SetDriveTargetValue(
plAngle f);
60 plAngle GetDriveTargetValue()
const {
return m_DriveTargetValue; }
63 void SetDriveStrength(
float f);
64 float GetDriveStrength()
const {
return m_fDriveStrength; }
70 float m_fFriction = 0;
73 float m_fDriveStrength = 0;
Float wrapper struct for a safe usage and conversions of angles.
Definition Angle.h:10
Definition ComponentManager.h:88
Base class for all Jolt physics joints (constraints).
Definition JoltConstraintComponent.h:73
virtual void DeserializeComponent(plWorldReader &inout_stream) override
Override this to load the current state of the component from the given stream.
Definition JoltConstraintComponent.cpp:214
virtual void SerializeComponent(plWorldWriter &inout_stream) const override
Override this to save the current state of the component to the given stream.
Definition JoltConstraintComponent.cpp:194
Implements a rotational physics constraint.
Definition JoltHingeConstraintComponent.h:13
Reads a world description from a stream. Allows to instantiate that world multiple times in different...
Definition WorldReader.h:47
Stores an entire plWorld in a stream.
Definition WorldWriter.h:13
A custom enum implementation that allows to define the underlying storage type to control its memory ...
Definition Enum.h:37
Enum
Definition JoltConstraintComponent.h:41
Enum
Definition JoltConstraintComponent.h:24