MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / CDisplayMatrixUpdate

Function CDisplayMatrixUpdate

Source/Objects/movementobject.cpp:2065–2083  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2063}
2064
2065static void CDisplayMatrixUpdate(MovementObject* mo) {
2066 PROFILER_ZONE(g_profiler_ctx, "C++ Display Matrix Update")
2067 MovementObject& this_mo = *mo;
2068
2069 PROFILER_ENTER(g_profiler_ctx, "Get AS pointers");
2070 ASContext* as_context = this_mo.as_context.get();
2071 float& breath_amount = *(float*)as_context->module.GetVarPtrCache("breath_amount");
2072
2073 CScriptArrayWrapper<int> ik_chain_start_index((CScriptArray*)as_context->module.GetVarPtrCache("ik_chain_start_index"));
2074 CScriptArrayWrapper<int> ik_chain_elements((CScriptArray*)as_context->module.GetVarPtrCache("ik_chain_elements"));
2075 CScriptArrayWrapper<BoneTransform> skeleton_bind_transforms((CScriptArray*)as_context->module.GetVarPtrCache("skeleton_bind_transforms"));
2076 CScriptArrayWrapper<BoneTransform> inv_skeleton_bind_transforms((CScriptArray*)as_context->module.GetVarPtrCache("inv_skeleton_bind_transforms"));
2077 PROFILER_LEAVE(g_profiler_ctx);
2078
2079 CDisplayMatrixUpdateImpl(
2080 mo,
2081 breath_amount,
2082 ik_chain_start_index, ik_chain_elements, skeleton_bind_transforms, inv_skeleton_bind_transforms);
2083}
2084
2085static vec3 CGetCenterOfMassEstimateImpl(
2086 MovementObject* mo,

Callers

nothing calls this directly

Calls 3

CDisplayMatrixUpdateImplFunction · 0.85
GetVarPtrCacheMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected