123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- using System;
- using System.Reflection;
- using System.Runtime.Serialization;
- using System.Security.Permissions;
- using log4net;
- using OpenSim.Framework;
- using OpenMetaverse;
- namespace OpenSim.Region.Framework.Scenes
- {
- public abstract class EntityBase : ISceneEntity
- {
-
-
-
- public Scene Scene
- {
- get { return m_scene; }
- }
- protected Scene m_scene;
- protected UUID m_uuid;
- public virtual UUID UUID
- {
- get { return m_uuid; }
- set { m_uuid = value; }
- }
- protected string m_name;
-
-
-
- public virtual string Name
- {
- get { return m_name; }
- set { m_name = value; }
- }
-
-
-
- public bool IsDeleted { get; protected internal set; }
- protected Vector3 m_pos;
-
-
-
- public virtual Vector3 AbsolutePosition
- {
- get { return m_pos; }
- set
- {
- m_pos = value;
- }
- }
- protected Vector3 m_velocity;
- protected Vector3 m_rotationalvelocity;
-
-
-
- public virtual Vector3 Velocity
- {
- get { return m_velocity; }
- set { m_velocity = value; }
- }
- protected uint m_localId;
- public virtual uint LocalId
- {
- get { return m_localId; }
- set
- {
- m_localId = value;
- }
- }
-
-
-
- public EntityBase()
- {
- m_name = "(basic entity)";
- }
-
-
-
-
- public abstract void Update();
-
-
-
-
- public virtual EntityBase Copy()
- {
- return (EntityBase) MemberwiseClone();
- }
- }
-
- public class EntityIntersection
- {
- public Vector3 ipoint = new Vector3(0, 0, 0);
- public Vector3 normal = new Vector3(0, 0, 0);
- public Vector3 AAfaceNormal = new Vector3(0, 0, 0);
- public int face = -1;
- public bool HitTF = false;
- public SceneObjectPart obj;
- public float distance = 0;
- public EntityIntersection()
- {
- }
- public EntityIntersection(Vector3 _ipoint, Vector3 _normal, bool _HitTF)
- {
- ipoint = _ipoint;
- normal = _normal;
- HitTF = _HitTF;
- }
- }
- }
|