public void Update(GameObject parent, TimeSpan time, float sparam) { Effect.SParam = sparam; var world = Attachment.Transform * parent.GetTransform(); Effect.Update(time, world.Transform(Vector3.Zero), world); }
public void Update(GameObject parent, double time, float sparam) { Effect.SParam = sparam; var world = (Attachment?.Transform ?? Matrix4x4.Identity) * parent.WorldTransform; Effect.Update(time, Vector3.Transform(Vector3.Zero, world), world); }