diff options
author | MW | 2007-03-02 18:24:54 +0000 |
---|---|---|
committer | MW | 2007-03-02 18:24:54 +0000 |
commit | acc98fca7b3890ce865fb440737865aa7765a671 (patch) | |
tree | c0f56f7ea5c6bd98a15a65fcc1fb508523b982ec /src/world/Entity.cs | |
parent | A example of how the physics plugins might work (diff) | |
download | opensim-SC_OLD-acc98fca7b3890ce865fb440737865aa7765a671.zip opensim-SC_OLD-acc98fca7b3890ce865fb440737865aa7765a671.tar.gz opensim-SC_OLD-acc98fca7b3890ce865fb440737865aa7765a671.tar.bz2 opensim-SC_OLD-acc98fca7b3890ce865fb440737865aa7765a671.tar.xz |
r105 somehow got put in wrong place, so replacing files
Diffstat (limited to 'src/world/Entity.cs')
-rw-r--r-- | src/world/Entity.cs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/world/Entity.cs b/src/world/Entity.cs index 72e4e83..ab07fd6 100644 --- a/src/world/Entity.cs +++ b/src/world/Entity.cs | |||
@@ -9,9 +9,9 @@ namespace OpenSim.world | |||
9 | public class Entity | 9 | public class Entity |
10 | { | 10 | { |
11 | protected libsecondlife.LLUUID uuid; | 11 | protected libsecondlife.LLUUID uuid; |
12 | public Vector3 position; | 12 | protected Vector3 position; |
13 | public Vector3 velocity; | 13 | protected Vector3 velocity; |
14 | public Quaternion rotation; | 14 | protected Quaternion rotation; |
15 | protected string name; | 15 | protected string name; |
16 | protected List<Entity> children; | 16 | protected List<Entity> children; |
17 | 17 | ||
@@ -24,13 +24,7 @@ namespace OpenSim.world | |||
24 | name = "(basic entity)"; | 24 | name = "(basic entity)"; |
25 | children = new List<Entity>(); | 25 | children = new List<Entity>(); |
26 | } | 26 | } |
27 | public virtual void addFroces() | 27 | |
28 | { | ||
29 | foreach (Entity child in children) | ||
30 | { | ||
31 | child.addFroces(); | ||
32 | } | ||
33 | } | ||
34 | public virtual void update() { | 28 | public virtual void update() { |
35 | // Do any per-frame updates needed that are applicable to every type of entity | 29 | // Do any per-frame updates needed that are applicable to every type of entity |
36 | foreach (Entity child in children) | 30 | foreach (Entity child in children) |