MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / set_static_ref_form

Method set_static_ref_form

ogsr_engine/xrGame/Geometry.cpp:178–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176bool CODEGeom::collide_fluids() { return !m_flags.test(SBoneShape::sfNoFogCollider); }
177
178void CODEGeom::set_static_ref_form(const Fmatrix& form)
179{
180 dGeomSetPosition(geometry_transform(), form.c.x, form.c.y, form.c.z);
181 Fmatrix33 m33;
182 m33.set(form);
183 dMatrix3 R;
184 PHDynamicData::FMX33toDMX(m33, R);
185 dGeomSetRotation(geometry_transform(), R);
186}
187
188void CODEGeom::set_position(const Fvector& /*ref_point*/) { dGeomUserDataResetLastPos(geom()); }
189

Callers 1

setStaticFormMethod · 0.80

Calls 3

dGeomSetPositionFunction · 0.85
dGeomSetRotationFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected