public override void Start() { if (Manager.PhysicEngine == null) { throw new InvalidOperationException("Physic engine was not be installed."); } colProxy = Manager.PhysicEngine.CreateBoxCollision(this, Layer, Mask); // size must be locked when starting halfSize.Lock(); base.Start(); }
public override void Start() { colProxy = Manager.PhysicEngine.CreateConeCollision(this, Layer, Mask); coneSize.Lock(); base.Start(); }
public override void Start() { colProxy = Manager.PhysicEngine.CreateSphereCollision(this, Layer, Mask); radius.Lock(); base.Start(); }