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

Method SetSize

Source/Engine/Level/Actors/BoxVolume.cpp:13–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13void BoxVolume::SetSize(const Vector3& value)
14{
15 if (value != _size)
16 {
17 const auto prevBounds = _box;
18 _size = value;
19 OrientedBoundingBox::CreateCentered(Vector3::Zero, _size, _bounds);
20 _bounds.Transform(_transform);
21 _bounds.GetBoundingBox(_box);
22 BoundingSphere::FromBox(_box, _sphere);
23 OnBoundsChanged(prevBounds);
24 }
25}
26
27#if USE_EDITOR
28

Callers

nothing calls this directly

Calls 3

CreateCenteredFunction · 0.85
TransformMethod · 0.45
GetBoundingBoxMethod · 0.45

Tested by

no test coverage detected