MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / updateHeight

Function updateHeight

examples/Heightfield/HeightfieldExample.cpp:341–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339
340
341static void
342updateHeight
343(
344 byte_t * p,
345 btScalar new_val,
346 PHY_ScalarType type
347)
348{
349 btScalar old_val = convertToFloat(p, type);
350 if (!old_val) {
351 convertFromFloat(p, new_val, type);
352 }
353}
354
355
356

Callers 1

setFractalFunction · 0.85

Calls 2

convertToFloatFunction · 0.85
convertFromFloatFunction · 0.85

Tested by

no test coverage detected