/** * Remove 3D Child Object */ public void RemoveChild(GameObject3D child) { if (Children.Remove(child)) //if successful { child.Parent = null; //remove this parent from the child obkect } }
private void UpdatePhysics(GameObject3D Object) { Object.TransVelocity += Object.TransAccel / 60; //amt. accel (where TransAccel is in seconds) per frame ... Object.Translate(Object.Position + Object.TransVelocity / 60); }
/** * Add 3D Child Object */ public void AddChild(GameObject3D child) { if (!Children.Contains(child)) { child.Parent = this; Children.Add(child); } }