From b968ff83a998b82d8bce9a4175178c7cd710be19 Mon Sep 17 00:00:00 2001 From: gareth Date: Sat, 3 Mar 2007 01:49:56 +0000 Subject: Begun porting a (STABLE) version of MW's movement code --- src/world/Entity.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/world/Entity.cs') diff --git a/src/world/Entity.cs b/src/world/Entity.cs index 92ab2da..0f75c8a 100644 --- a/src/world/Entity.cs +++ b/src/world/Entity.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; using System.Text; using Axiom.MathLib; +using libsecondlife; using OpenSim.types; namespace OpenSim.world @@ -9,8 +10,8 @@ namespace OpenSim.world public class Entity { protected libsecondlife.LLUUID uuid; - protected Vector3 position; - protected Vector3 velocity; + public LLVector3 position; + public LLVector3 velocity; protected Quaternion rotation; protected string name; protected List children; @@ -19,8 +20,8 @@ namespace OpenSim.world public Entity() { uuid = new libsecondlife.LLUUID(); - position = new Vector3(); - velocity = new Vector3(); + position = new LLVector3(); + velocity = new LLVector3(); rotation = new Quaternion(); name = "(basic entity)"; children = new List(); @@ -33,6 +34,7 @@ namespace OpenSim.world if(child.needupdate) child.update(); } + this.needupdate=false; } public virtual string getName() -- cgit v1.1