Hi, i'm developing a ragdoll simulator using Processing. I have to make the bounding box of a tetrahedron. I have the basic bounding box without rotation, but I need the rotation...can anybdy help me?
I'm programming a ragdoll simulator in processing using the verlet method. I have benn implementing an angle constraints for the hinge and ball-socket joint, but , when this are ready i have seen that the elbow of ragdoll rotates into its axis and it goes inside out.
I have 4 points for the inge joint, how can I limit this rotation??
Hi,
I'm developing a physics application using the verlet's integrator.
i have been developing the angular contrains as a stick contraint. It works very good, but the problem is that my project is in 3d not in 2d...Then i have a contraint for 90 degrees but 90 degrees are in all directions. Anyone have any solution?
Thanks, and sorry for my bas english, I'm not english...
Hi everyone, i'm doing an application with processing ide and when i click to play button it sends me this error message:
File C:UsrgankAppDataLocalTempuild5772272317183868757.tmpSlider.java is missing
Exception in thread "AWT-EventQueue-0" java.lang.StringIndexOutOfBoundsException: String index out of range: 1027
at java.lang.String.charAt(String.java:686)
at processing.app.syntax.Brackets.findMatchingBracket(Brackets.java:69)
at processing.app.syntax.JEditTextArea.updateBracketHighlight(JEditTextArea.java:1701)
at processing.app.syntax.JEditTextArea.select(JEditTextArea.java:1146)
at processing.app.syntax.JEditTextArea$DragHandler.mouseDragged(JEditTextArea.java:2011)
at java.awt.AWTEventMulticaster.mouseDragged(AWTEventMulticaster.java:302)
at java.awt.Component.processMouseMotionEvent(Component.java:6311)
at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3285)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4255)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
I have 3 clases in the proyect:
Interficie
import controlP5.*;
class Interficie extends PApplet{
Cargador car; Slider slider; ControlP5 controlP5;
void setup() { size(800,600); background(0);
String folderPath = selectFolder(); // Opens file chooser if (folderPath == null) { // If a folder was not selected println("No folder was selected..."); } else { // If a folder was selected, print path to folder println(folderPath); }
car = new Cargador(folderPath+""); car.cargar();
slider = new Slider(car.getImagenes(),this); controlP5 = new ControlP5(this); controlP5.addButton("Siguiente",0,100,100,80,19); controlP5.addButton("Anterior",255,100,120,80,19); }
public void imagenSiguiente() { pos=(pos+1)%imagenes.size(); imgAct = (PImage)imagenes.toArray()[pos]; }
public void imagenAnterior() { pos=(pos-1); if(pos<0) { pos=imagenes.size(); } } public ArrayList<PImage> getImagenes(){ return imagenes; } }
and Slider:
class Slider{
ArrayList<PImage> imagenes; private int numImagenes; private int alto; private int separacionx,separaciony; private int posicion; private int imgAct; private float anchoImagen,altoImagen; private PApplet parent;