mirror of
https://github.com/celisej567/metaballs.git
synced 2026-09-09 20:22:58 +03:00
15 lines
315 B
C#
15 lines
315 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class Ball : MonoBehaviour {
|
|
public float radius;
|
|
public bool negativeBall;
|
|
|
|
[HideInInspector]
|
|
public float radiusSq;
|
|
|
|
public virtual void Start() {
|
|
this.radiusSq = (this.negativeBall ? -1 : 1) * this.radius * this.radius;
|
|
}
|
|
}
|