MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Serialize

Method Serialize

Source/Engine/Physics/Physics.cpp:56–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54#if USE_EDITOR
55
56void PhysicsSettings::Serialize(SerializeStream& stream, const void* otherObj)
57{
58 SERIALIZE_GET_OTHER_OBJ(PhysicsSettings);
59
60 SERIALIZE(DefaultGravity);
61 SERIALIZE(TriangleMeshTriangleMinAreaThreshold);
62 SERIALIZE(BounceThresholdVelocity);
63 SERIALIZE(FrictionCombineMode);
64 SERIALIZE(RestitutionCombineMode);
65 SERIALIZE(DisableCCD);
66 SERIALIZE(BroadPhaseType);
67 SERIALIZE(SolverType);
68 SERIALIZE(MaxDeltaTime);
69 SERIALIZE(EnableSubstepping);
70 SERIALIZE(SubstepDeltaTime);
71 SERIALIZE(MaxSubsteps);
72 SERIALIZE(QueriesHitTriggers);
73 SERIALIZE(SupportCookingAtRuntime);
74
75 stream.JKEY("LayerMasks");
76 stream.StartArray();
77 for (uint32 e : LayerMasks)
78 stream.Uint(e);
79 stream.EndArray();
80}
81
82#endif
83

Callers

nothing calls this directly

Calls 3

StartArrayMethod · 0.45
UintMethod · 0.45
EndArrayMethod · 0.45

Tested by

no test coverage detected