Plasma Engine  2.0
Loading...
Searching...
No Matches
JoltConeConstraintComponent.h
1#pragma once
2
3#include <JoltPlugin/Constraints/JoltConstraintComponent.h>
4
6
11{
13
15 // plComponent
16
17public:
18 virtual void SerializeComponent(plWorldWriter& inout_stream) const override;
19 virtual void DeserializeComponent(plWorldReader& inout_stream) override;
20
22 // plJoltConstraintComponent
23
24protected:
25 virtual void CreateContstraintType(JPH::Body* pBody0, JPH::Body* pBody1) override;
26 virtual void ApplySettings() final override;
27 virtual bool ExceededBreakingPoint() final override;
28
30 // plJoltConeConstraintComponent
31
32public:
35
36 void SetConeAngle(plAngle f); // [ property ]
37 plAngle GetConeAngle() const { return m_ConeAngle; } // [ property ]
38
39protected:
40 plAngle m_ConeAngle;
41};
Float wrapper struct for a safe usage and conversions of angles.
Definition Angle.h:10
Definition ComponentManager.h:88
Implements a conical physics constraint.
Definition JoltConeConstraintComponent.h:11
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
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