From 3d1b4f8578e4dc3df0436c1c13f1b2983d3b55e7 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Tue, 25 Mar 2008 16:09:43 +0000 Subject: * On Ray casting. Now returning the face normal of the collision face. --- OpenSim/Region/Environment/Scenes/EntityBase.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/EntityBase.cs') diff --git a/OpenSim/Region/Environment/Scenes/EntityBase.cs b/OpenSim/Region/Environment/Scenes/EntityBase.cs index 713b205..c6a5b29 100644 --- a/OpenSim/Region/Environment/Scenes/EntityBase.cs +++ b/OpenSim/Region/Environment/Scenes/EntityBase.cs @@ -228,7 +228,7 @@ namespace OpenSim.Region.Environment.Scenes public class EntityIntersection { public Vector3 ipoint = new Vector3(0, 0, 0); - public float normal = 0; + public Vector3 normal = new Vector3(0, 0, 0); public bool HitTF = false; public SceneObjectPart obj; public float distance = 0; @@ -237,7 +237,7 @@ namespace OpenSim.Region.Environment.Scenes { } - public EntityIntersection(Vector3 _ipoint, float _normal, bool _HitTF) + public EntityIntersection(Vector3 _ipoint, Vector3 _normal, bool _HitTF) { ipoint = _ipoint; normal = _normal; -- cgit v1.1