org.jbox2d.dynamics.contacts
Class TOISolver

java.lang.Object
  extended by org.jbox2d.dynamics.contacts.TOISolver

public class TOISolver
extends Object

This is a pure position solver for a single movable body in contact with multiple non-moving bodies.

Author:
daniel

Constructor Summary
TOISolver()
           
 
Method Summary
 void clear()
           
 void initialize(Contact[] contacts, int count, Body toiBody)
           
 boolean solve(float baumgarte)
          Perform one solver iteration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TOISolver

public TOISolver()
Method Detail

clear

public void clear()

initialize

public void initialize(Contact[] contacts,
                       int count,
                       Body toiBody)

solve

public boolean solve(float baumgarte)
Perform one solver iteration. Returns true if converged.

Parameters:
baumgarte -
Returns:


Copyright © 2012. All Rights Reserved.