-------------------------------------------------------------------------------- Description: This is where it is all going to happen --------------------------------------------------------------------------------
| 474 | // This is where it is all going to happen |
| 475 | // -------------------------------------------------------------------------------- |
| 476 | void EveSOF::SetupMesh( EveSpaceObject2Ptr obj, const EveSOFDNAPtr dna ) const |
| 477 | { |
| 478 | CCP_STATS_ZONE( __FUNCTION__ ); |
| 479 | |
| 480 | // bounding sphere comes from data, is faster |
| 481 | obj->SetBoundingSphereInformation( dna->GetHullBoundingSphere() ); |
| 482 | obj->SetShapeEllipsoid( dna->GetHullShapeEllipsoid() ); |
| 483 | obj->EnableDynamicBoundingSphere( dna->DynamicBoundingSphereEnabled() ); |
| 484 | |
| 485 | obj->SetCastsShadow( dna->CastShadow() ); |
| 486 | obj->SetIsAnimated( dna->IsHullAnimated() ); |
| 487 | |
| 488 | // assign mesh to ship |
| 489 | obj->SetMesh( CreateMesh( dna ) ); |
| 490 | |
| 491 | // Set the reflectionMode based on the category |
| 492 | obj->SetReflectionMode( dna->GetReflectionMode() ); |
| 493 | } |
| 494 | |
| 495 | |
| 496 | // -------------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected