Package dwlab.behavior_models

Examples of dwlab.behavior_models.RevoluteJoint


    layer.findShape( "head" ).attachModel( FixedJoint.create( body ) );
    for( int n = 0; n <= 1; n++ ) {
      String prefix = prefixes[ n ];
      upperArm[ n ] = (Sprite) layer.findShape( prefix + "upper_arm" );
      lowerArm[ n ] = (Sprite) layer.findShape( prefix + "lower_arm" );
      upperArm[ n ].attachModel( new RevoluteJoint( body, 0, -0.333 ) );
      lowerArm[ n ].attachModel( new RevoluteJoint( upperArm[ n ], 0, -0.333 ) );
      layer.findShape( prefix + "fist" ).attachModel( FixedJoint.create( lowerArm[ n ]  ) );
      upperLeg[ n ] = (Sprite) layer.findShape( prefix + "upper_leg" );
      lowerLeg[ n ] = (Sprite) layer.findShape( prefix + "lower_leg" );
      foot[ n ] = (Sprite) layer.findShape( prefix + "foot" );
      upperLeg[ n ].attachModel( new RevoluteJoint( body, 0, -0.375 ) );
      lowerLeg[ n ].attachModel( new RevoluteJoint( upperLeg[ n ], 0, -0.375 ) );
      foot[ n ].attachModel( FixedJoint.create( lowerLeg[ n ] ) );
    }
    Camera.current.jumpTo( body );
    body.angle = gr15;
  }
View Full Code Here

TOP

Related Classes of dwlab.behavior_models.RevoluteJoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.