diff options
author | Charles Krinke | 2008-08-01 02:33:28 +0000 |
---|---|---|
committer | Charles Krinke | 2008-08-01 02:33:28 +0000 |
commit | ab778c4114d694e284ac711b7500e9ced7d01bad (patch) | |
tree | 2e458da86aba97bc2d37e957e2edcf5e8ad81b8c /OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |
parent | Patch #8 in the estate series. Introduces the concept of an estate (diff) | |
download | opensim-SC_OLD-ab778c4114d694e284ac711b7500e9ced7d01bad.zip opensim-SC_OLD-ab778c4114d694e284ac711b7500e9ced7d01bad.tar.gz opensim-SC_OLD-ab778c4114d694e284ac711b7500e9ced7d01bad.tar.bz2 opensim-SC_OLD-ab778c4114d694e284ac711b7500e9ced7d01bad.tar.xz |
Mantis#1859. Thank you kindly, Lmmz for a patch that:
Implements llForceMouselook().
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 1d719b2..675322a 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -195,6 +195,12 @@ namespace OpenSim.Region.Environment.Scenes | |||
195 | protected LLUUID m_uuid; | 195 | protected LLUUID m_uuid; |
196 | protected LLVector3 m_velocity; | 196 | protected LLVector3 m_velocity; |
197 | 197 | ||
198 | // TODO: Those have to be changed into persistent properties at some later point, | ||
199 | // or sit-camera on vehicles will break on sim-crossing. | ||
200 | private LLVector3 m_cameraEyeOffset = new LLVector3(0.0f, 0.0f, 0.0f); | ||
201 | private LLVector3 m_cameraAtOffset = new LLVector3(0.0f, 0.0f, 0.0f); | ||
202 | private bool m_forceMouselook = false; | ||
203 | |||
198 | #endregion Fields | 204 | #endregion Fields |
199 | 205 | ||
200 | #region Constructors | 206 | #region Constructors |
@@ -3313,6 +3319,30 @@ namespace OpenSim.Region.Environment.Scenes | |||
3313 | } | 3319 | } |
3314 | } | 3320 | } |
3315 | 3321 | ||
3322 | public void SetCameraAtOffset(LLVector3 v) { | ||
3323 | m_cameraAtOffset = v; | ||
3324 | } | ||
3325 | |||
3326 | public void SetCameraEyeOffset(LLVector3 v) { | ||
3327 | m_cameraEyeOffset = v; | ||
3328 | } | ||
3329 | |||
3330 | public void SetForceMouselook(bool force) { | ||
3331 | m_forceMouselook = force; | ||
3332 | } | ||
3333 | |||
3334 | public LLVector3 GetCameraAtOffset() { | ||
3335 | return m_cameraAtOffset; | ||
3336 | } | ||
3337 | |||
3338 | public LLVector3 GetCameraEyeOffset() { | ||
3339 | return m_cameraEyeOffset; | ||
3340 | } | ||
3341 | |||
3342 | public bool GetForceMouselook() { | ||
3343 | return m_forceMouselook; | ||
3344 | } | ||
3345 | |||
3316 | #endregion Public Methods | 3346 | #endregion Public Methods |
3317 | } | 3347 | } |
3318 | } | 3348 | } |