diff options
author | Teravus Ovares | 2009-07-19 02:32:02 +0000 |
---|---|---|
committer | Teravus Ovares | 2009-07-19 02:32:02 +0000 |
commit | 08819bcbea9012d67cc4cb44e4d7ec7e5837bac6 (patch) | |
tree | 9158d1b42f1563db2294cfce5e85f41f1345d613 /OpenSim/Region/ClientStack | |
parent | Thank you, otakup0pe, for a patch that enables basic auth with LSL (diff) | |
download | opensim-SC-08819bcbea9012d67cc4cb44e4d7ec7e5837bac6.zip opensim-SC-08819bcbea9012d67cc4cb44e4d7ec7e5837bac6.tar.gz opensim-SC-08819bcbea9012d67cc4cb44e4d7ec7e5837bac6.tar.bz2 opensim-SC-08819bcbea9012d67cc4cb44e4d7ec7e5837bac6.tar.xz |
* Created a way that the OpenSimulator scene can ask the physics scene to do a raycast test safely.
* Test for prim obstructions between the avatar and camera. If there are obstructions, inform the client to move the camera closer. This makes it so that walls and objects don't obstruct your view while you're moving around. Try walking inside a hollowed tori. You'll see how much easier it is now because your camera automatically moves closer so you can still see.
* Created a way to know if the user's camera is alt + cammed or just following the avatar.
* Changes IClientAPI interface by adding SendCameraConstraint(Vector4 CameraConstraint)
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index a13f6d4..3a93007 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -3779,8 +3779,19 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
3779 | } | 3779 | } |
3780 | } | 3780 | } |
3781 | 3781 | ||
3782 | public void SendCameraConstraint(Vector4 ConstraintPlane) | ||
3783 | { | ||
3784 | CameraConstraintPacket cpack = (CameraConstraintPacket)PacketPool.Instance.GetPacket(PacketType.CameraConstraint); | ||
3785 | cpack.CameraCollidePlane = new CameraConstraintPacket.CameraCollidePlaneBlock(); | ||
3786 | cpack.CameraCollidePlane.Plane = ConstraintPlane; | ||
3787 | m_log.DebugFormat("[CLIENTVIEW]: Constraint {0}", ConstraintPlane); | ||
3788 | OutPacket(cpack, ThrottleOutPacketType.Task); | ||
3789 | } | ||
3790 | |||
3782 | public void SendLandObjectOwners(LandData land, List<UUID> groups, Dictionary<UUID, int> ownersAndCount) | 3791 | public void SendLandObjectOwners(LandData land, List<UUID> groups, Dictionary<UUID, int> ownersAndCount) |
3783 | { | 3792 | { |
3793 | |||
3794 | |||
3784 | int notifyCount = ownersAndCount.Count; | 3795 | int notifyCount = ownersAndCount.Count; |
3785 | ParcelObjectOwnersReplyPacket pack = (ParcelObjectOwnersReplyPacket)PacketPool.Instance.GetPacket(PacketType.ParcelObjectOwnersReply); | 3796 | ParcelObjectOwnersReplyPacket pack = (ParcelObjectOwnersReplyPacket)PacketPool.Instance.GetPacket(PacketType.ParcelObjectOwnersReply); |
3786 | 3797 | ||