diff options
author | Adam Frisby | 2007-04-06 18:48:23 +0000 |
---|---|---|
committer | Adam Frisby | 2007-04-06 18:48:23 +0000 |
commit | fb0dffbf13a79aabe9537f16b7bb151af62c75bf (patch) | |
tree | 28a8d468e5499a7af1e33eec7bbdeb9e82ae8732 /OpenSim.Physics | |
parent | And now for some solution files... (diff) | |
download | opensim-SC_OLD-fb0dffbf13a79aabe9537f16b7bb151af62c75bf.zip opensim-SC_OLD-fb0dffbf13a79aabe9537f16b7bb151af62c75bf.tar.gz opensim-SC_OLD-fb0dffbf13a79aabe9537f16b7bb151af62c75bf.tar.bz2 opensim-SC_OLD-fb0dffbf13a79aabe9537f16b7bb151af62c75bf.tar.xz |
**BREAKING CHANGE** Changing the way terrain is stored and used internally.
Diffstat (limited to 'OpenSim.Physics')
-rw-r--r-- | OpenSim.Physics/Manager/PhysicsScene.cs | 4 | ||||
-rw-r--r-- | OpenSim.Physics/OdePlugin/OdePlugin.cs | 2 | ||||
-rw-r--r-- | OpenSim.Physics/PhysXPlugin/PhysXPlugin.cs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim.Physics/Manager/PhysicsScene.cs b/OpenSim.Physics/Manager/PhysicsScene.cs index 0b3dfd2..25e2104 100644 --- a/OpenSim.Physics/Manager/PhysicsScene.cs +++ b/OpenSim.Physics/Manager/PhysicsScene.cs | |||
@@ -49,7 +49,7 @@ namespace OpenSim.Physics.Manager | |||
49 | 49 | ||
50 | public abstract void GetResults(); | 50 | public abstract void GetResults(); |
51 | 51 | ||
52 | public abstract void SetTerrain(float[] heightMap); | 52 | public abstract void SetTerrain(float[,] heightMap); |
53 | 53 | ||
54 | public abstract void DeleteTerrain(); | 54 | public abstract void DeleteTerrain(); |
55 | 55 | ||
@@ -87,7 +87,7 @@ namespace OpenSim.Physics.Manager | |||
87 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine("NullPhysicsScene : GetResults()"); | 87 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine("NullPhysicsScene : GetResults()"); |
88 | } | 88 | } |
89 | 89 | ||
90 | public override void SetTerrain(float[] heightMap) | 90 | public override void SetTerrain(float[,] heightMap) |
91 | { | 91 | { |
92 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine("NullPhysicsScene : SetTerrain({0} items)", heightMap.Length); | 92 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine("NullPhysicsScene : SetTerrain({0} items)", heightMap.Length); |
93 | } | 93 | } |
diff --git a/OpenSim.Physics/OdePlugin/OdePlugin.cs b/OpenSim.Physics/OdePlugin/OdePlugin.cs index 325e2fd..7c9c684 100644 --- a/OpenSim.Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim.Physics/OdePlugin/OdePlugin.cs | |||
@@ -173,7 +173,7 @@ namespace OpenSim.Physics.OdePlugin | |||
173 | } | 173 | } |
174 | } | 174 | } |
175 | 175 | ||
176 | public override void SetTerrain(float[] heightMap) | 176 | public override void SetTerrain(float[,] heightMap) |
177 | { | 177 | { |
178 | for (int i = 0; i < 65536; i++) | 178 | for (int i = 0; i < 65536; i++) |
179 | { | 179 | { |
diff --git a/OpenSim.Physics/PhysXPlugin/PhysXPlugin.cs b/OpenSim.Physics/PhysXPlugin/PhysXPlugin.cs index 10e92fe..74e7cb8 100644 --- a/OpenSim.Physics/PhysXPlugin/PhysXPlugin.cs +++ b/OpenSim.Physics/PhysXPlugin/PhysXPlugin.cs | |||
@@ -173,7 +173,7 @@ namespace OpenSim.Physics.PhysXPlugin | |||
173 | } | 173 | } |
174 | } | 174 | } |
175 | 175 | ||
176 | public override void SetTerrain(float[] heightMap) | 176 | public override void SetTerrain(float[,] heightMap) |
177 | { | 177 | { |
178 | if (this._heightMap != null) | 178 | if (this._heightMap != null) |
179 | { | 179 | { |