flagflag  

GetTerrainHeightAtXY() anchor.png

  • OpenSim/Region/Physics/OdePlugin/OdePlug​in.cs
  • Subversion r197 より発生. r228 で正常に戻る?
  • TerrainHeightFieldHeights[][] の値がおかしいため飛行中から ↓ (HOVAR_DOWN) で,地表に降りれない場所がある.
  • _origheightmap[] は使用中止になった.
  • とりあえず,前のリビジョンまで使用していた _origheightmap[] を復活させて使用.
    //if (index < TerrainHeightFieldHeights[heightFieldGeom].Length) {
    //    return (float)TerrainHeightFieldHeights[heightFieldGeom][(int)y * (int)Constants.RegionSize + (int)x];
    if (index < _origheightmap.Length)
        return (float)_origheightmap[index];
    else
        return 0f;
Page Top

SetTerrain() anchor.png

  • OpenSim/Region/Physics/OdePlugin/OdePlug​in.cs
  • SetTerrain() の d.GeomSetPosition() の引数変更により SIM Baundary での奈落落下阻止のパッチコードが誤作動
  • d.GeomSetPosition() の引数を元に戻す.
    d.RFromAxisAndAngle(out R, v3.X, v3.Y, v3.Z, angle);
    d.GeomSetRotation(GroundGeom, ref R);
    // Fumi.Iseki for SIM Boundary Falling
    //d.GeomSetPosition(GroundGeom, (pOffset.X + ((int)Constants.RegionSize * 0.5f)) - 1, (pOffset.Y + ((int)Constants.RegionSize * 0.5f)) - 1, 0);
    d.GeomSetPosition(GroundGeom, pOffset.X + ((int)Constants.RegionSize * 0.5f), pOffset.Y + ((int)Constants.RegionSize * 0.5f), 0);
    IntPtr testGround = IntPtr.Zero;

Front page   Freeze Diff Backup Copy Rename Reload   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)
Counter: 1408, today: 1, yesterday: 1
Last-modified: 2009-09-06 (Sun) 11:59:43 (JST) (3788d) by iseki

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthJan 2020Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

31 user(s) are online (3 user(s) are browsing xpwiki)

Members: 0
Guests: 31

more...

Access Counter

Today : 1249124912491249
Yesterday : 2854285428542854
Total : 1323519013235190132351901323519013235190132351901323519013235190
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com