#how can i shrink a sphere when i shoot it
1 messages · Page 1 of 1 (latest)
partiles should have a size over lifetime module
for regular objects such as a sphere, you could reduce the transform.localScale in update or something
float scaleValue = transform.localScale.x;
scaleValue = Mathf.Mas(scaleValue - shrinkSpeed * Time.deltaTime, minimumScale);
transform.localScale = new Vector3(scaleValue, scaleValue, scaleValue);
you can define the variables minimumScale, shrinkSpeed etc like you want
and do the shrinking somewhere in Update for example