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;
40 plAngle GetSwingLimitY()
const {
return m_SwingLimitY; }
44 plAngle GetSwingLimitZ()
const {
return m_SwingLimitZ; }
47 void SetFriction(
float f);
48 float GetFriction()
const {
return m_fFriction; }
51 void SetLowerTwistLimit(
plAngle f);
52 plAngle GetLowerTwistLimit()
const {
return m_LowerTwistLimit; }
55 void SetUpperTwistLimit(
plAngle f);
56 plAngle GetUpperTwistLimit()
const {
return m_UpperTwistLimit; }
71 float m_fFriction = 0.0f;
Float wrapper struct for a safe usage and conversions of angles.
Definition Angle.h:10
static constexpr plAngle MakeFromDegree(float fDegree)
Creates an instance of plAngle that was initialized from degree. (Performs a conversion)
Definition Angle_inl.h:33
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 swing-twist physics constraint.
Definition JoltSwingTwistConstraintComponent.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