From e69c810486e63e8b4398c7b67e84d73154d2dfcf Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Thu, 22 Nov 2007 01:32:13 +0000 Subject: * Added code to capture the draw distance setting from the client. * Added a support function to InnerScene to calculate the distance between two vectors. --- OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Examples/SimpleApp') diff --git a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs index f7af2f2..65c8ee7 100644 --- a/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs +++ b/OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs @@ -364,7 +364,10 @@ namespace SimpleApp if (OnAgentUpdate != null) { - OnAgentUpdate(this, movementFlag, bodyDirection); + AgentUpdatePacket pack = new AgentUpdatePacket(); + pack.AgentData.ControlFlags = movementFlag; + pack.AgentData.BodyRotation = bodyDirection; + OnAgentUpdate(this, pack); } if (flyState == 0) { -- cgit v1.1