Esempio n. 1
0
 public void UpdateAxisLine()
 {
     _axisBottom.Position = _position - _rotAxis * _radius * 1.4f;
     _axisTop.Position    = _position + _rotAxis * _radius * 1.4f;
     _axisLine.Clear();
     _axisLine.AddPoint(_axisBottom);
     _axisLine.AddPoint(_axisTop);
     _axisLine.Configure(_renderer);
 }
Esempio n. 2
0
 public void UpdateVelocityLineAndBall()
 {
     _velLine.Clear();
     _velOrigin.Position = _position;
     _velBallPos         = _position + (2.2f * _radius) * _velDir;
     _velTip.Position    = _velBallPos;
     _velBall.Position   = _velBallPos;
     _velBallRadius      = _radius * 0.2f;
     _velBall.Scale      = new Vector3(_velBallRadius);
     _velLine.AddPoint(_velOrigin);
     _velLine.AddPoint(_velTip);
     _velLine.Configure(_renderer);
 }