Home
last modified time | relevance | path

Searched refs:v_g (Results 1 – 1 of 1) sorted by relevance

/CTR-SDK-4.2.7-SampleDemos/demo2/
Dgraphics.cpp210 nn::math::VEC3 v_g(v_acc.x, -1.f, v_acc.y); // Gravitational acceleration in UpdateParams() local
213 if(v_g.x > 1.f) v_g.x = 1.f; in UpdateParams()
214 else if(v_g.x < -1.f) v_g.x = -1.f; in UpdateParams()
215 if(v_g.z > 1.f) v_g.z = 1.f; in UpdateParams()
216 else if(v_g.z < -1.f) v_g.z = -1.f; in UpdateParams()
217 v_deg->x = nn::math::AsinDeg(v_g.x); // Incline of x-axis in UpdateParams()
218 v_deg->y = nn::math::AsinDeg(v_g.z); // Incline of z-axis in UpdateParams()
245 v_g.y = 0; in UpdateParams()
247 v_v += (v_g + v_s) * SPEED; in UpdateParams()
255 v_v.y += v_g.y * SPEED; in UpdateParams()