MCPcopy Create free account
hub / github.com/carbonengine/trinity / IsReady

Method IsReady

trinity/Wod/WodPlaceableRes.cpp:37–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37bool WodPlaceableRes::IsReady()
38{
39 if( m_bIsReady )
40 {
41 return true;
42 }
43 Vector3 myMin;
44 Vector3 myMax;
45
46 BoundingBoxInitialize( myMin, myMax );
47 Vector3 meshMin;
48 Vector3 meshMax;
49
50 if( !m_visualModel->GetBoundingBox( meshMin, meshMax ) )
51 {
52 return false;
53 }
54
55 BoundingBoxUpdate( myMin, myMax, meshMin );
56 BoundingBoxUpdate( myMin, myMax, meshMax );
57
58 m_minBounds.SetVector( &myMin );
59 m_maxBounds.SetVector( &myMax );
60
61 m_bIsReady = true;
62
63 return true;
64}
65
66bool WodPlaceableRes::HasTransparency()
67{

Callers 2

GetLocalBoundingBoxMethod · 0.80
IsBoundingBoxReadyMethod · 0.80

Calls 4

BoundingBoxInitializeFunction · 0.85
BoundingBoxUpdateFunction · 0.85
GetBoundingBoxMethod · 0.45
SetVectorMethod · 0.45

Tested by

no test coverage detected