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

  /external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Collision/Shapes/
b2CircleShape.cpp 93 void b2CircleShape::ComputeMass(b2MassData* massData, float32 density) const
95 massData->mass = density * b2_pi * m_radius * m_radius;
96 massData->center = m_p;
99 massData->I = massData->mass * (0.5f * m_radius * m_radius + b2Dot(m_p, m_p));
b2EdgeShape.cpp 132 void b2EdgeShape::ComputeMass(b2MassData* massData, float32 density) const
136 massData->mass = 0.0f;
137 massData->center = 0.5f * (m_vertex1 + m_vertex2);
138 massData->I = 0.0f;
b2ChainShape.cpp 187 void b2ChainShape::ComputeMass(b2MassData* massData, float32 density) const
191 massData->mass = 0.0f;
192 massData->center.SetZero();
193 massData->I = 0.0f;
b2EdgeShape.h 52 void ComputeMass(b2MassData* massData, float32 density) const;
b2Shape.h 88 /// @param massData returns the mass data for this shape.
90 virtual void ComputeMass(b2MassData* massData, float32 density) const = 0;
b2PolygonShape.cpp 358 void b2PolygonShape::ComputeMass(b2MassData* massData, float32 density) const
427 massData->mass = density * area;
432 massData->center = center + s;
435 massData->I = density * I;
438 massData->I += massData->mass * (b2Dot(massData->center, massData->center) - b2Dot(center, center));
b2ChainShape.h 83 void ComputeMass(b2MassData* massData, float32 density) const;
b2CircleShape.h 47 void ComputeMass(b2MassData* massData, float32 density) const;
b2PolygonShape.h 69 void ComputeMass(b2MassData* massData, float32 density) const;
  /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...]
b2Fixture.h 167 void GetMassData(b2MassData* massData) const;
334 inline void b2Fixture::GetMassData(b2MassData* massData) const
336 m_shape->ComputeMass(massData, m_density);
  /external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/collision/shapes/
Shape.java 115 * @param massData returns the mass data for this shape.
118 public abstract void computeMass(final MassData massData, final float density);
CircleShape.java 196 public final void computeMass(final MassData massData, final float density) {
197 massData.mass = density * Settings.PI * m_radius * m_radius;
198 massData.center.x = m_p.x;
199 massData.center.y = m_p.y;
202 // massData.I = massData.mass * (0.5f * m_radius * m_radius + Vec2.dot(m_p, m_p));
203 massData.I = massData.mass * (0.5f * m_radius * m_radius + (m_p.x * m_p.x + m_p.y * m_p.y));
ChainShape.java 163 public void computeMass(MassData massData, float density) {
164 massData.mass = 0.0f;
165 massData.center.setZero();
166 massData.I = 0.0f;
EdgeShape.java 236 public void computeMass(MassData massData, float density) {
237 massData.mass = 0.0f;
238 massData.center.set(m_vertex1).addLocal(m_vertex2).mulLocal(0.5f);
239 massData.I = 0.0f;
PolygonShape.java 549 public void computeMass(final MassData massData, float density) {
620 massData.mass = density * area;
625 massData.center.set(center).addLocal(s);
628 massData.I = I * density;
631 massData.I += massData.mass * (Vec2.dot(massData.center, massData.center));
  /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...]
Fixture.java 30 import org.jbox2d.collision.shapes.MassData;
252 public void getMassData(MassData massData) {
253 m_shape.computeMass(massData, m_density);
  /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);

Completed in 182 milliseconds