[WF-General] ocean entity prototype

Amey Parulekar amey.par at gmail.com
Sat May 9 15:26:16 PDT 2009


I've created a prototype for the ocean

Prototype Ocean:

  <map>
    <map name="attributes">
      <map name="solid">
        <int name="default">0</int>
        <string name="visibility">public</string>
      </map>
      <map name="bbox">
        <list name="default">
          <float>-500</float>
          <float>-320</float>
          <float>-20</float>
          <float>320</float>
          <float>320</float>
          <float>0</float>
        </list>
      </map>
    </map>
    <string name="id">ocean</string>
    <string name="objtype">class</string>
    <list name="parents">
      <string>thing</string>
    </list>
  </map>

I wasn't sure about the maximum size of the world, so I looked in
define_world.py, found a call to _setup_landscape, and found the
following lines there:

    if m.look_for(type='boundary') is None:
        m.make('boundary',pos=(-500,-321,-20),bbox=[2,642,300])
        m.make('boundary',pos=(-500,-321,-20),bbox=[821,2,300])
        m.make('boundary',pos=(-500, 320,-20),bbox=[821,2,300])
        m.make('boundary',pos=( 320,-321,-20),bbox=[2,642,300])

So I assumed this to be the boundary for the world, and set the bbox
accordingly.
I've set the solid attribute to 0 as you asked, and set the parent to thing.

I would like to know how much on-track I am so far, and how do I go
about filling this entity with water?

Amey


More information about the General mailing list