MCPcopy Create free account
hub / github.com/begla/Intrinsic / init

Method init

IntrinsicCore/src/IntrinsicCoreComponentsCharacterController.cpp:39–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37// <-
38
39void CharacterControllerManager::init()
40{
41 _INTR_LOG_INFO("Inititializing Character Controller Component Manager...");
42
43 Dod::Components::ComponentManagerBase<
44 CharacterControllerData,
45 _INTR_MAX_CHARACTER_CONTROLLER_COMPONENT_COUNT>::_initComponentManager();
46
47 Dod::Components::ComponentManagerEntry characterControllerEntry;
48 {
49 characterControllerEntry.createFunction =
50 Components::CharacterControllerManager::createCharacterController;
51 characterControllerEntry.destroyFunction =
52 Components::CharacterControllerManager::destroyCharacterController;
53 characterControllerEntry.createResourcesFunction =
54 Components::CharacterControllerManager::createResources;
55 characterControllerEntry.destroyResourcesFunction =
56 Components::CharacterControllerManager::destroyResources;
57 characterControllerEntry.getComponentForEntityFunction =
58 Components::CharacterControllerManager::getComponentForEntity;
59 characterControllerEntry.resetToDefaultFunction =
60 Components::CharacterControllerManager::resetToDefault;
61
62 Application::_componentManagerMapping[_N(CharacterController)] =
63 characterControllerEntry;
64 Application::_orderedComponentManagers.push_back(characterControllerEntry);
65 }
66
67 Dod::PropertyCompilerEntry propCompilerCharacterController;
68 {
69 propCompilerCharacterController.compileFunction =
70 Components::CharacterControllerManager::compileDescriptor;
71 propCompilerCharacterController.initFunction =
72 Components::CharacterControllerManager::initFromDescriptor;
73 propCompilerCharacterController.ref = Dod::Ref();
74 Application::_componentPropertyCompilerMapping[_N(CharacterController)] =
75 propCompilerCharacterController;
76 }
77
78 _INTR_ASSERT(_pxControllerManager == nullptr);
79 _pxControllerManager =
80 PxCreateControllerManager(*Physics::System::_pxScene, false);
81 _INTR_ASSERT(_pxControllerManager);
82}
83
84// <-
85

Callers

nothing calls this directly

Calls 2

RefClass · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected