HomeSort by relevance Sort by last modified time
    Searched refs:restitution (Results 1 - 25 of 28) sorted by null

1 2

  /external/libgdx/extensions/gdx-box2d/gdx-box2d/src/com/badlogic/gdx/physics/box2d/
FixtureDef.java 29 /** The restitution (elasticity) usually in the range [0,1]. **/
30 public float restitution = 0; field in class:FixtureDef
Contact.java 185 /** Override the default restitution mixture. You can call this in b2ContactListener::PreSolve. The value persists until you set
187 public void setRestitution (float restitution) {
188 jniSetRestitution(addr, restitution);
191 private native void jniSetRestitution (long addr, float restitution); /*
193 contact->SetRestitution(restitution);
196 /** Get the restitution. */
206 /** Reset the restitution to the default value. */
Fixture.java 274 /** Get the coefficient of restitution. */
284 /** Set the coefficient of restitution. */
285 public void setRestitution (float restitution) {
286 jniSetRestitution(addr, restitution);
289 private native void jniSetRestitution (long addr, float restitution); /*
291 fixture->SetRestitution(restitution);
Body.java 73 long fixtureAddr = jniCreateFixture(addr, def.shape.addr, def.friction, def.restitution, def.density, def.isSensor,
82 private native long jniCreateFixture (long addr, long shapeAddr, float friction, float restitution, float density,
90 fixtureDef.restitution = restitution;
101 * set parameters like friction, restitution, user data, or filtering. If the density is non-zero, this function automatically
  /external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/
FixtureDef.java 52 * The restitution (elasticity) usually in the range [0,1].
54 public float restitution; field in class:FixtureDef
75 restitution = 0f;
126 * The restitution (elasticity) usually in the range [0,1].
129 return restitution;
133 * The restitution (elasticity) usually in the range [0,1].
135 public void setRestitution(float restitution) {
136 this.restitution = restitution;
Fixture.java 275 * Get the coefficient of restitution.
284 * Set the coefficient of restitution. This will _not_ change the restitution of existing
287 * @param restitution
289 public void setRestitution(float restitution) {
290 m_restitution = restitution;
320 m_restitution = def.restitution;
  /external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/com/badlogic/gdx/physics/box2d/
FixtureDef.java 29 /** The restitution (elasticity) usually in the range [0,1]. **/
30 public float restitution = 0; field in class:FixtureDef
50 fd.restitution = restitution;
Contact.java 103 /** Override the default restitution mixture. You can call this in b2ContactListener::PreSolve. The value persists until you set
105 public void setRestitution (float restitution) {
106 contact.setRestitution(restitution);
109 /** Get the restitution. */
114 /** Reset the restitution to the default value. */
Fixture.java 149 /** Get the coefficient of restitution. */
154 /** Set the coefficient of restitution. */
155 public void setRestitution (float restitution) {
156 fixture.setRestitution(restitution);
  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/box2d/
VaryingRestitution.java 61 float restitution[] = {0, 0.1f, 0.3f, 0.5f, 0.75f, 0.9f, 1.0f}; local
63 for (int i = 0; i < restitution.length; i++) {
69 fd.restitution = restitution[i];
VerticalStack.java 113 fd.restitution = 0.05f;
ApplyForce.java 63 sd.restitution = k_restitution;
CollisionFiltering.java 134 boxShapeDef.restitution = 0.1f;
  /external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Dynamics/
b2Fixture.h 64 restitution = 0.0f;
79 /// The restitution (elasticity) usually in the range [0,1].
80 float32 restitution; member in struct:b2FixtureDef
183 /// Get the coefficient of restitution.
186 /// Set the coefficient of restitution. This will _not_ change the restitution of
188 void SetRestitution(float32 restitution);
319 inline void b2Fixture::SetRestitution(float32 restitution)
321 m_restitution = restitution;
  /external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/contacts/
ContactVelocityConstraint.java 40 public float restitution; field in class:ContactVelocityConstraint
Contact.java 230 public void setRestitution(float restitution) {
231 m_restitution = restitution;
343 * Friction mixing law. The idea is to allow either fixture to drive the restitution to zero. For
355 * Restitution mixing law. The idea is allow for anything to bounce off an inelastic surface. For
  /external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Dynamics/Contacts/
b2ContactSolver.h 53 float32 restitution; member in struct:b2ContactVelocityConstraint
b2Contact.h 35 /// Friction mixing law. The idea is to allow either fixture to drive the restitution to zero.
42 /// Restitution mixing law. The idea is allow for anything to bounce off an inelastic surface.
128 /// Override the default restitution mixture. You can call this in b2ContactListener::PreSolve.
130 void SetRestitution(float32 restitution);
132 /// Get the restitution.
135 /// Reset the restitution to the default value.
324 inline void b2Contact::SetRestitution(float32 restitution)
326 m_restitution = restitution;
  /external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/
com.badlogic.gdx.physics.box2d.Fixture.cpp 168 JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Fixture_jniSetRestitution(JNIEnv* env, jobject object, jlong addr, jfloat restitution) {
174 fixture->SetRestitution(restitution);
com.badlogic.gdx.physics.box2d.Contact.cpp 152 JNIEXPORT void JNICALL Java_com_badlogic_gdx_physics_box2d_Contact_jniSetRestitution(JNIEnv* env, jobject object, jlong addr, jfloat restitution) {
158 contact->SetRestitution(restitution);
com.badlogic.gdx.physics.box2d.Body.cpp 6 JNIEXPORT jlong JNICALL Java_com_badlogic_gdx_physics_box2d_Body_jniCreateFixture__JJFFFZSSS(JNIEnv* env, jobject object, jlong addr, jlong shapeAddr, jfloat friction, jfloat restitution, jfloat density, jboolean isSensor, jshort filterCategoryBits, jshort filterMaskBits, jshort filterGroupIndex) {
17 fixtureDef.restitution = restitution;
  /external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletDynamics/ConstraintSolver/
btContactConstraint.cpp 73 //response between two dynamic objects without friction and no restitution, assuming 0 penetration depth
97 btScalar restitution = combinedRestitution* -rel_vel; local
100 btScalar velocityError = -(1.0f + restitution) * rel_vel;// * damping;
btSequentialImpulseConstraintSolver.h 78 btScalar restitutionCurve(btScalar rel_vel, btScalar restitution);
btSequentialImpulseConstraintSolver.cpp 505 btScalar btSequentialImpulseConstraintSolver::restitutionCurve(btScalar rel_vel, btScalar restitution)
507 btScalar rest = restitution * -rel_vel;
828 btScalar restitution = 0.f; local
1473 btScalar restitution = 0.f; local
    [all...]
  /external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletDynamics/Featherstone/
btMultiBodyConstraintSolver.cpp 459 btScalar restitution = 0.f; local
500 restitution = restitutionCurve(rel_vel, cp.m_combinedRestitution);
501 if (restitution <= btScalar(0.))
503 restitution = 0.f;
556 btScalar velocityError = restitution - rel_vel;// * damping; //note for friction restitution is always set to 0 (check above) so it is acutally velocityError = -rel_vel for friction
    [all...]

Completed in 723 milliseconds

1 2