public override void Update(float elapsedSeconds)
        {
            Vector3 adjVelocity = mVelocity * elapsedSeconds;

            setLocation(mPoint + adjVelocity);
            mBounds.setCorners(mPoint, mPoint);
        }
 public override void MouseDownVertex(int vertexID, float x, float y)
 {
     if (vertexID == 0)
     {
         m_mouse_down_point = new Vector3(x, y, 0);
         m_bounds.setCorners(m_mouse_down_point, m_mouse_down_point);
     }
     else
     {
         m_bounds.setCorners(m_mouse_down_point, new Vector3(x, y, 0));
     }
 }
Exemple #3
0
 public void setRadius(float radius)
 {
     mRadius = radius;
     mBounds.setCorners(
         new Vector3(mCenter.X - mRadius, mCenter.Y - mRadius, mCenter.Z),
         new Vector3(mCenter.X + mRadius, mCenter.Y + mRadius, mCenter.Z));
 }
Exemple #4
0
 public UWB_PrimitiveCircle()
 {
     mCenter = Vector3.Zero;
     mRadius = 0;
     mBounds = new UWB_BoundingBox();
     mBounds.setCorners(
         new Vector3(mCenter.X - mRadius, mCenter.Y - mRadius, mCenter.Z),
         new Vector3(mCenter.X + mRadius, mCenter.Y + mRadius, mCenter.Z));
 }
 public UWB_PrimitiveCircle()
 {
     mCenter = Vector3.Zero;
     mRadius = 0;
     mBounds = new UWB_BoundingBox();
     mBounds.setCorners(
         new Vector3(mCenter.X - mRadius, mCenter.Y - mRadius, mCenter.Z),
         new Vector3(mCenter.X + mRadius, mCenter.Y + mRadius, mCenter.Z));
 }
 public UWB_PrimitivePoint(float x, float y, float z)
 {
     mPoint  = new Vector3(x, y, z);
     mBounds = new UWB_BoundingBox();
     mBounds.setCorners(mPoint, mPoint);
 }
 public UWB_PrimitivePoint()
 {
     mPoint  = Vector3.Zero;
     mBounds = new UWB_BoundingBox();
     mBounds.setCorners(mPoint, mPoint);
 }
Exemple #8
0
 public override UWB_BoundingVolume getBoundingVolume(eLevelofDetail lod)
 {
     mBounds.setCorners(mStart, mEnd);
     return(mBounds);
 }
 public UWB_PrimitivePoint(float x, float y, float z)
 {
     mPoint = new Vector3(x, y, z);
     mBounds = new UWB_BoundingBox();
     mBounds.setCorners(mPoint, mPoint);
 }
 public UWB_PrimitivePoint()
 {
     mPoint = Vector3.Zero;
     mBounds = new UWB_BoundingBox();
     mBounds.setCorners(mPoint, mPoint);
 }