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

Method SetSize

Source/Engine/Level/Actors/Decal.cpp:23–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void Decal::SetSize(const Vector3& value)
24{
25 const auto v = value.GetAbsolute();
26 if (v != _size)
27 {
28 _size = v;
29 _bounds.Extents = v * 0.5f;
30 _bounds.GetBoundingBox(_box);
31 BoundingSphere::FromBox(_box, _sphere);
32 }
33}
34
35MaterialInstance* Decal::CreateAndSetVirtualMaterialInstance()
36{

Callers

nothing calls this directly

Calls 2

GetAbsoluteMethod · 0.45
GetBoundingBoxMethod · 0.45

Tested by

no test coverage detected