public void Update() { position = agxPrimitive.GetPosition(); //rotation = agxPrimitive.Get_Rotation(); quatRotation = agxPrimitive.GetRotation(); if (forceSensor != null) { forceSensor.Update(); } if (distanceSensors != null) { foreach (DistanceSensor ds in distanceSensors) { ds.Update(); } } }
public void Update() { position = agxPrimitive.GetPosition(); //rotation = agxPrimitive.Get_Rotation(); quatRotation = agxPrimitive.GetRotation(); }