diff options
author | Teravus Ovares | 2007-11-22 01:32:13 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-11-22 01:32:13 +0000 |
commit | e69c810486e63e8b4398c7b67e84d73154d2dfcf (patch) | |
tree | 21423ba1dfad709e85a52e455d2c65840bad21d2 /OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs | |
parent | Fixed bug that can lead to infinitive loops (diff) | |
download | opensim-SC-e69c810486e63e8b4398c7b67e84d73154d2dfcf.zip opensim-SC-e69c810486e63e8b4398c7b67e84d73154d2dfcf.tar.gz opensim-SC-e69c810486e63e8b4398c7b67e84d73154d2dfcf.tar.bz2 opensim-SC-e69c810486e63e8b4398c7b67e84d73154d2dfcf.tar.xz |
* Added code to capture the draw distance setting from the client.
* Added a support function to InnerScene to calculate the distance between two vectors.
Diffstat (limited to 'OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs')
-rw-r--r-- | OpenSim/Region/Examples/SimpleApp/MyNpcCharacter.cs | 5 |
1 files changed, 4 insertions, 1 deletions
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 | |||
364 | 364 | ||
365 | if (OnAgentUpdate != null) | 365 | if (OnAgentUpdate != null) |
366 | { | 366 | { |
367 | OnAgentUpdate(this, movementFlag, bodyDirection); | 367 | AgentUpdatePacket pack = new AgentUpdatePacket(); |
368 | pack.AgentData.ControlFlags = movementFlag; | ||
369 | pack.AgentData.BodyRotation = bodyDirection; | ||
370 | OnAgentUpdate(this, pack); | ||
368 | } | 371 | } |
369 | if (flyState == 0) | 372 | if (flyState == 0) |
370 | { | 373 | { |