27 void SaveBinaryState(
StreamOut &inStream)
const;
30 void RestoreBinaryState(
StreamIn &inStream);
62 float mLinearDamping = 0.1f;
63 float mMaxLinearVelocity = 500.0f;
64 float mRestitution = 0.0f;
65 float mFriction = 0.2f;
66 float mPressure = 0.0f;
67 float mGravityFactor = 1.0f;
68 bool mUpdatePosition =
true;
69 bool mMakeRotationIdentity =
true;
70 bool mAllowSleeping =
true;
#define JPH_EXPORT
Definition: Core.h:227
std::uint64_t uint64
Definition: Core.h:443
#define JPH_NAMESPACE_END
Definition: Core.h:367
std::uint32_t uint32
Definition: Core.h:442
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:361
uint16 ObjectLayer
Definition: ObjectLayer.h:16
#define JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(linkage, class_name)
Definition: SerializableObject.h:71
Definition: CollisionGroup.h:20
static JPH_INLINE Quat sIdentity()
Definition: Quat.h:103
Definition: Reference.h:151
Helper class that either contains a valid result or an error.
Definition: Result.h:15
Definition: SoftBodyCreationSettings.h:18
SoftBodySharedSettings::SharedSettingsToIDMap SharedSettingsToIDMap
Definition: SoftBodyCreationSettings.h:34
StreamUtils::IDToObjectMap< PhysicsMaterial > IDToMaterialMap
Definition: SoftBodyCreationSettings.h:37
StreamUtils::ObjectToIDMap< GroupFilter > GroupFilterToIDMap
Definition: SoftBodyCreationSettings.h:32
SoftBodySharedSettings::IDToSharedSettingsMap IDToSharedSettingsMap
Definition: SoftBodyCreationSettings.h:35
StreamUtils::ObjectToIDMap< PhysicsMaterial > MaterialToIDMap
Definition: SoftBodyCreationSettings.h:36
StreamUtils::IDToObjectMap< GroupFilter > IDToGroupFilterMap
Definition: SoftBodyCreationSettings.h:33
RefConst< SoftBodySharedSettings > mSettings
Defines the configuration of this soft body.
Definition: SoftBodyCreationSettings.h:49
CollisionGroup mCollisionGroup
The collision group this body belongs to (determines if two objects can collide)
Definition: SoftBodyCreationSettings.h:59
Definition: SoftBodySharedSettings.h:16
StreamUtils::IDToObjectMap< SoftBodySharedSettings > IDToSharedSettingsMap
Definition: SoftBodySharedSettings.h:99
StreamUtils::ObjectToIDMap< SoftBodySharedSettings > SharedSettingsToIDMap
Definition: SoftBodySharedSettings.h:98
Simple binary input stream.
Definition: StreamIn.h:13
Simple binary output stream.
Definition: StreamOut.h:13
static JPH_INLINE Vec3 sZero()
Vector with all zeros.
Definition: Vec3.inl:107
Array< Ref< Type > > IDToObjectMap
Definition: StreamUtils.h:21
UnorderedMap< const Type *, uint32 > ObjectToIDMap
Definition: StreamUtils.h:18