HomeSort by relevance Sort by last modified time
    Searched defs:massData (Results 1 - 5 of 5) sorted by null

  /external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Dynamics/
b2Body.cpp 310 b2MassData massData;
311 f->GetMassData(&massData);
312 m_mass += massData.mass;
313 localCenter += massData.mass * massData.center;
314 m_I += massData.I;
353 void b2Body::SetMassData(const b2MassData* massData)
370 m_mass = massData->mass;
378 if (massData->I > 0.0f && (m_flags & b2Body::e_fixedRotationFlag) == 0)
380 m_I = massData->I - m_mass * b2Dot(massData->center, massData->center)
    [all...]
  /external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/com/badlogic/gdx/physics/box2d/
Body.java 222 private final MassData massData = new MassData();
223 private final org.jbox2d.collision.shapes.MassData massData2 = new org.jbox2d.collision.shapes.MassData();
227 public MassData getMassData () {
229 massData.center.set(massData2.center.x, massData2.center.y);
230 massData.I = massData2.I;
231 massData.mass = massData2.mass;
232 return massData;
    [all...]
  /external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/
com.badlogic.gdx.physics.box2d.Body.cpp 251 float* massData = (float*)env->GetPrimitiveArrayCritical(obj_massData, 0);
259 massData[0] = m.mass;
260 massData[1] = m.center.x;
261 massData[2] = m.center.y;
262 massData[3] = m.I;
264 env->ReleasePrimitiveArrayCritical(obj_massData, massData, 0);
  /external/libgdx/extensions/gdx-box2d/gdx-box2d/src/com/badlogic/gdx/physics/box2d/
Body.java 406 private final MassData massData = new MassData();
410 public MassData getMassData () {
412 massData.mass = tmp[0];
413 massData.center.x = tmp[1];
414 massData.center.y = tmp[2];
415 massData.I = tmp[3];
416 return massData;
419 private native void jniGetMassData (long addr, float[] massData); /*
    [all...]
  /external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/
Body.java 27 import org.jbox2d.collision.shapes.MassData;
586 public final void getMassData(MassData data) {
606 * @param massData the mass properties.
608 public final void setMassData(MassData massData) {
623 m_mass = massData.mass;
630 if (massData.I > 0.0f && (m_flags & e_fixedRotationFlag) == 0) {
631 m_I = massData.I - m_mass * Vec2.dot(massData.center, massData.center)
    [all...]

Completed in 120 milliseconds