CGObject_C::Conform
function · objectlayer · primitive
- Address
0x614cd0· 298 bytes, up to0x614df9- Signature
void __thiscall (CGObject_C *this, float dt)- Meaning
- Smooths the ground normal and conforms the model to it
- Confidence
- verified, proof one
- Finding
- objectlayer/objectbase#ground-conform
- Test
objectlayer::f3_render_smooth_active_difftest,objectlayer::f3_render_smooth_delta_difftest,objectlayer::f3_render_smooth_lerp_difftest,objectlayer::f3_render_amp_product_difftest
Finding: Ground conform in objectlayer: the base object
Slot 15, 0x614cd0(dt), tilts the model to the ground. When slot 8's normal has z ≥ 0.3572124,
the smoothed vector +0x104 becomes normal + (+0x104 − normal)·0.0018^dt; a steeper normal
leaves it as it was. The model's base transform is then set through SetBaseTransformConformed
with the position (slot 5), the facing (slot 17), the model scale and +0x104.
The derivation is in the doc.
Callers 1
- CGUnit_C::PlaceModel objectlayer
Callees 2
- CM2Model::SetBaseTransformConformed models
- __CIpow crt
Calls and jumps by a bare address, from tables/calls.tsv.