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.2 Files

The WorldInfo node has a field called physics which defines the name of the physics plugin file that must be used for this world. The field name does not explicitely specify the filename extension because this is platform dependent. The extension will be automatically added by Webots according to the platform: .so (Linux), .DLL (Windows) or .dylib (Mac OS X).

The plugin file must be located in a directory which name corresponds exactly to the value of the physics field. This directory itself must be located in the plugins/physics subdirectories of the current project. For example, this WorldInfo node:

WorldInfo {
  physics "my_physics"
}

refers to the my_project/plugins/physics/my_physics/my_physics.[so|dll|dylib] file (the actual extension depends on the platform). If Webots does not find the file there, it will also look into the default plugins repository which is located in Webots distribution, in the webots/projects/default/plugins directory.

previous page go up next page
^ page top ^

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