Rollback to r117
parent
b968ff83a9
commit
b29618fc3c
|
@ -12,8 +12,6 @@ namespace OpenSim.world
|
|||
public string firstname;
|
||||
public string lastname;
|
||||
public OpenSimClient ControllingClient;
|
||||
public uint CurrentKeyMask;
|
||||
|
||||
private libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock AvatarTemplate;
|
||||
|
||||
public Avatar(OpenSimClient TheClient) {
|
||||
|
@ -23,21 +21,7 @@ namespace OpenSim.world
|
|||
}
|
||||
|
||||
public void update() {
|
||||
lock(this) {
|
||||
base.update();
|
||||
|
||||
if((this.CurrentKeyMask & (uint)MainAvatar.AgentUpdateFlags.AGENT_CONTROL_AT_POS) != 0) {
|
||||
if((this.velocity.X>230) & (this.velocity.Y>230)) {
|
||||
this.velocity.X=230;
|
||||
this.velocity.Y=230;
|
||||
this.velocity.Z=0;
|
||||
}
|
||||
} else {
|
||||
this.velocity.X=0;
|
||||
this.velocity.Y=0;
|
||||
this.velocity.Z=0;
|
||||
}
|
||||
}
|
||||
base.update();
|
||||
}
|
||||
|
||||
private void SetupTemplate(string name)
|
||||
|
|
|
@ -2,7 +2,6 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Axiom.MathLib;
|
||||
using libsecondlife;
|
||||
using OpenSim.types;
|
||||
|
||||
namespace OpenSim.world
|
||||
|
@ -10,8 +9,8 @@ namespace OpenSim.world
|
|||
public class Entity
|
||||
{
|
||||
protected libsecondlife.LLUUID uuid;
|
||||
public LLVector3 position;
|
||||
public LLVector3 velocity;
|
||||
protected Vector3 position;
|
||||
protected Vector3 velocity;
|
||||
protected Quaternion rotation;
|
||||
protected string name;
|
||||
protected List<Entity> children;
|
||||
|
@ -20,8 +19,8 @@ namespace OpenSim.world
|
|||
public Entity()
|
||||
{
|
||||
uuid = new libsecondlife.LLUUID();
|
||||
position = new LLVector3();
|
||||
velocity = new LLVector3();
|
||||
position = new Vector3();
|
||||
velocity = new Vector3();
|
||||
rotation = new Quaternion();
|
||||
name = "(basic entity)";
|
||||
children = new List<Entity>();
|
||||
|
@ -34,7 +33,6 @@ namespace OpenSim.world
|
|||
if(child.needupdate)
|
||||
child.update();
|
||||
}
|
||||
this.needupdate=false;
|
||||
}
|
||||
|
||||
public virtual string getName()
|
||||
|
|
|
@ -18,13 +18,6 @@ namespace OpenSim.world
|
|||
}
|
||||
|
||||
public void DoStuff(World simworld) {
|
||||
foreach (libsecondlife.LLUUID UUID in simworld.Entities.Keys)
|
||||
{
|
||||
if(simworld.Entities[UUID].needupdate) {
|
||||
simworld.Entities[UUID].position += simworld.Entities[UUID].velocity;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue