Webots Reference Manual

previous page go up next page

Thanks

1. Introduction

2. Node Chart

3. Nodes and API Functions

4. Prototypes

5. Physics Plugin

6. Fast2D Plugin

7. MTN Functions

8. Webots World Files

     

5.1 Introduction

This chapter describes the capability to add custom physics simulation to your Webots simulations. This is especially useful if you want to model complex forces and torques, such as hydrodynamic forces or a random wind. It is also possible to gather various information (like the position, orientation, linear or angular velocity, etc. of every solid in the world, or the global parameters of the physical simulation), to decide which force or torque should be applied. This way, it is possible to apply hydrodynamic forces only when a robot enters a special part of the world which is supposed to contain water. You may also access internal parameters of the physics engine for a better tuning of your physics simulation. Moreover, you can implement your own collision detection system and define non-uniform friction parameters on some surfaces.

Adding a physics plugin is done by creating a custom shared library which is loaded by Webots at run-time, and which contains function calls to the ODE physics library.

previous page go up next page
^ page top ^

  E-mail to webmaster Last updated: Copyright © 2008 Cyberbotics Ltd.