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

Method UpdateScale

Source/Engine/Physics/Actors/RigidBody.cpp:407–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void RigidBody::UpdateScale()
408{
409 const Float3 scale = GetScale();
410 if (_cachedScale == scale)
411 return;
412 _cachedScale = scale;
413
414 // Check if update mass
415 if (_updateMassWhenScaleChanges && !_overrideMass)
416 UpdateMass();
417}
418
419void RigidBody::Serialize(SerializeStream& stream, const void* otherObj)
420{

Callers

nothing calls this directly

Calls 1

GetScaleFunction · 0.85

Tested by

no test coverage detected