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:236
std::uint64_t uint64
Definition: Core.h:456
#define JPH_NAMESPACE_END
Definition: Core.h:378
std::uint32_t uint32
Definition: Core.h:455
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:372
uint16 ObjectLayer
Definition: ObjectLayer.h:16
#define JPH_DECLARE_SERIALIZABLE_NON_VIRTUAL(linkage, class_name)
Definition: SerializableObject.h:80
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:12
Definition: SoftBodyCreationSettings.h:18
SoftBodySharedSettings::SharedSettingsToIDMap SharedSettingsToIDMap
Definition: SoftBodyCreationSettings.h:34
StreamUtils::ObjectToIDMap< GroupFilter > GroupFilterToIDMap
Definition: SoftBodyCreationSettings.h:32
StreamUtils::ObjectToIDMap< PhysicsMaterial > MaterialToIDMap
Definition: SoftBodyCreationSettings.h:36
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:102
StreamUtils::ObjectToIDMap< SoftBodySharedSettings > SharedSettingsToIDMap
Definition: SoftBodySharedSettings.h:101
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
UnorderedMap< const Type *, uint32 > ObjectToIDMap
Definition: StreamUtils.h:18